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
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.
>
>
>
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
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,