[maemo-developers] conflicts between row-activated and button-press-event signal on GtkTreeView
From: Santtu Lakkala inz at inz.fiDate: Fri Sep 14 10:11:00 EEST 2007
- Previous message: conflicts between row-activated and button-press-event signal on GtkTreeView
- Next message: DSP vs. ARM endianness and struct packing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Zhu, Peter J wrote: > I'm having problems with mouse click processing of GtkTreeView. I would > like to have different callback to single click and double click. But > once I connect singal to button-press-event, no "row-activated" signal > is received. I would guess your "button-press-event"-handler returns TRUE. For most Gdk/Gtk+ signals, returning TRUE means that the event has been handled, and it's emission is stopped -- thus it never reaches the handler in GtkTreeView. Try returning FALSE. ;) - -- Santtu Lakkala -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFG6jQEX9Rc0+po4p0RAtAMAJsEuNd8k7X/gbioT3XOgjScJqFUJQCfc2Eq 782EgwHiuTHQbX8pfgfJucE= =O2Gv -----END PGP SIGNATURE-----
- Previous message: conflicts between row-activated and button-press-event signal on GtkTreeView
- Next message: DSP vs. ARM endianness and struct packing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]