GtkBox vs GtkGrid

2013-06-02 Thread Thomas A. Moulton
Am I missing something? If I use GtkBox it seems that once I add a child I can't get access to it's address any more (GtkWidget *) So if I create a box with some things in it in glade I really can't do much with them. (Other than giving them specific names and using the builder object to loo

Re: Get column no. of edited cell.

2013-06-02 Thread dE
On 06/02/13 14:30, Arnel A. Borja wrote: On Sunday, 02 June, 2013 03:35 PM, dE wrote: On 06/02/13 12:49, Arnel A. Borja wrote: On Sunday, 02 June, 2013 02:15 PM, dE wrote: I'm trying this out, but isnt this also possible with gtk_tree_view_get_cursor clubbed with gtk_tree_view_column_get_sort

Re: Get column no. of edited cell.

2013-06-02 Thread Arnel A. Borja
On Sunday, 02 June, 2013 03:35 PM, dE wrote: On 06/02/13 12:49, Arnel A. Borja wrote: On Sunday, 02 June, 2013 02:15 PM, dE wrote: I'm trying this out, but isnt this also possible with gtk_tree_view_get_cursor clubbed with gtk_tree_view_column_get_sort_column_id. Cause I'm getting segfault w

Ctrl key, event state value, XIM vs IBus

2013-06-02 Thread Luc Pionchon
Hi, I have a program that connects to the key pressed event. I am getting different event->state value for Ctrl, depending on the input method. - XIM gives 4 - IBus gives 33554436 is this how it is meant to be? How should I process it? GDK_CONTROL_MASK catches only the XIM value (Same for Alt

Re: Get column no. of edited cell.

2013-06-02 Thread Arnel A. Borja
On Sunday, 02 June, 2013 03:44 PM, dE wrote: Referring to -- https://developer.gnome.org/gtk3/3.7/GtkCellRenderer.html I didn't get any such field. It'll be a breakthrough if it's there. That function is in GObject, because GtkCellRenderer is a descendant of GObject. See Object Hierarchy in h

Re: Get column no. of edited cell.

2013-06-02 Thread dE
On 06/02/13 12:46, James Tappin wrote: Another possibility would be to use g_object_set_data to give the renderer a column number, and g_object_get_data in the handler. On 2 June 2013 07:15, dE > wrote: On 06/02/13 00:27, Arnel A. Borja wrote: On Sun

Re: Get column no. of edited cell.

2013-06-02 Thread dE
On 06/02/13 12:49, Arnel A. Borja wrote: On Sunday, 02 June, 2013 02:15 PM, dE wrote: I'm trying this out, but isnt this also possible with gtk_tree_view_get_cursor clubbed with gtk_tree_view_column_get_sort_column_id. Cause I'm getting segfault with -- gtk_tree_view_get_cursor ( detect_obje

Re: Get column no. of edited cell.

2013-06-02 Thread Arnel A. Borja
On Sunday, 02 June, 2013 02:15 PM, dE wrote: I'm trying this out, but isnt this also possible with gtk_tree_view_get_cursor clubbed with gtk_tree_view_column_get_sort_column_id. Cause I'm getting segfault with -- gtk_tree_view_get_cursor ( detect_object ( "DataDisplay", build_object ), tree_

Re: Get column no. of edited cell.

2013-06-02 Thread James Tappin
Another possibility would be to use g_object_set_data to give the renderer a column number, and g_object_get_data in the handler. On 2 June 2013 07:15, dE wrote: > On 06/02/13 00:27, Arnel A. Borja wrote: > >> On Sunday, 02 June, 2013 01:44 AM, dE wrote: >> >>> I've set the "editable" property