Re: Double click?!



Murilo Tuvani wrote:
As I use Glade I've noticed I uses a double click
event like window in which one click selects some
widget and the second one makes something else with
it, I wanna make something like this in a clist select
an item and then show in another window, which is this
event among all of them, I haven't found any
double_click or something like this. Thanks Murilo
Martin, Thanks whith the gtk_widget_grab_focus, you're right.


You need to hook a callback to "button-press-event" on the
GtkWidget in question, one of the arguments will be a
GdkEventButton:

http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventButton

Double clicks and tripple clicks are discussed here.

Cheers,
                          -Tristan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]