Re: GTK+ screen shots

2008-10-19 Thread shyjumon
Hi Thank you for reply. I got a tutorial something i can grab from here. I am sharing the link for you: http://www.grumz.net/?q=node/75 Thanks a lot for give the hint about imagick. Thanks and regds, Shyjumon N. On Sun, Oct 19, 2008 at 11:09 AM, paragasu [EMAIL PROTECTED] wrote: i never do

Passing Struct to g_signal_connect

2008-10-19 Thread beginner.c
I need to pass a struct using g_signal_connect, but the issue I'm having is that I can't alter the elements of the struct within the called function e.g. void on_button2_clicked (struct allStructs *by_ptr) { gtk_label_set_text ((GtkLabel*)by_ptr-widgets.label, whatever); } main { blah

Re: Passing Struct to g_signal_connect

2008-10-19 Thread Till Harbaum / Lists
Hi, you have to make sure that the parameters of your callback function exactly match what's been described for this particular event. In your case your have to check the clicked event for a GtkButton which gives us: void user_function(GtkButton *button, gpointer user_data) So this is how

Re: What widgets in TES Construction Set?

2008-10-19 Thread Tristan Van Berkom
On Sat, Oct 18, 2008 at 1:26 PM, Juhana Sadeharju [EMAIL PROTECTED] wrote: [...] I tried Glade but soon found that plain GTK is more for my taste. In Glade, good is that all the widget properties are listed, no guess work. Bad was that I could not do what I wanted. Hi, before you give up on

Re: Passing Struct to g_signal_connect

2008-10-19 Thread beginner.c
Thank you. However, now I'm getting a segfault when trying to access any of the elements of the passed struct. Does it matter that the button to which the signal is attached is actually in the struct I'm passing to the callback? This is what GDB gives me Program received signal SIGSEGV,