Re: problem about node of treeview

2011-11-02 Thread Dong Luo
I assume the "GtkTreePath *path" is the row where double click happened. You can easily determine if it's a top node or not in your callback function, just do nothing if it is. From the on-line reference: "A path is essentially a potential node. It is a location on a model that may or may not a

Re: Keybindings

2011-10-18 Thread Dong Luo
ctober 17, 2011 11:43 AM Subject: Re: Keybindings On 17 October 2011 15:54, Dong Luo wrote: Hi, > > >I did not use gtk recently. But I figure you can just let the toplevel widget >response to the signal of key-press-event and do what ever Keybindings you >want there. > > >

Re: Disabling automatic ESC key action for GtkDialog

2008-02-08 Thread Dong Luo
You may need add GTK_RESPONSE_ACCEPT or GTK_RESPONSE_REJECT parameter when create GtkDialog using gtk_dialog_new_with_buttons (). One of them is the response id from the action of press ESC key, thus you can write your handle to it accordingly. In my case, it is GTK_RESPONSE_ACCEPT. You can test it

Re: Multiple threads and gtk_main()

2007-07-11 Thread Dong Luo
I'm new to gtk and still reading tutorials, but can we register a new signal to any global object (possiblely main window), thus call back function can be connected in the main thread and the signal can be emitted in other threads? --- Jonathan Winterflood <[EMAIL PROTECTED]> wrote: > On 7/11/07,