Puzzling behavior when passing user data to callback from Glade

2010-04-25 Thread dfg dfg
Hi all, I have a Glade interface with a button. I have defined a callback handler for the button and a user data that is the name of a ListStore which is also created in Glade. I then wrote a simple call back as follows: void cb_test(GtkWidget *widget, GtkListStore *store){

Re: Puzzling behavior when passing user data to callback from Glade

2010-04-25 Thread Tadej Borovšak
Hello. How come the userdata is passed in as the first argument, while the button widget itself is passed in as the second arguement? When the data field is not empty in Glade, signal is connected like you would call g_signal_connect_swapped() macro in C code. This was probably done from

gtk_list_store from XML UI not storing strings

2010-04-25 Thread endeavormac
I have designed my interface with glade, and have set up what I believe to be a good, valid GtkListStore. Here is the corresponding XML: object class=GtkListStore id=list_results columns !-- column-name thread_id -- column type=gint/ !-- column-name hostname --

Re: gtk_list_store from XML UI not storing strings

2010-04-25 Thread Tadej Borovšak
Hi, Why are you using '%x' format specifier in print statement to print strings? Try replacing %x with %s and I'm almost sure things will work out just fine. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com

Re: gtk_list_store from XML UI not storing strings

2010-04-25 Thread Dudu Loschi
The gchar type represents only one character. To store a string you should use gchararray 2010/4/24 endeavormac endeavor...@gmail.com: I have designed my interface with glade, and have set up what I believe to be a good, valid GtkListStore. Here is the corresponding XML:  object