[maemo-commits] [maemo-commits] r14956 - in projects/haf/trunk/gail: . debian gail
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Dec 13 15:37:48 EET 2007
- Previous message: [maemo-commits] r14955 - projects/haf/tags/gail
- Next message: [maemo-commits] r14957 - in projects/haf/trunk/freetype: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: atdomoko Date: 2007-12-13 15:37:44 +0200 (Thu, 13 Dec 2007) New Revision: 14956 Modified: projects/haf/trunk/gail/ChangeLog projects/haf/trunk/gail/debian/changelog projects/haf/trunk/gail/gail/gailbutton.c Log: applied patch from upstream bug #496167 fixes NB#24426 Modified: projects/haf/trunk/gail/ChangeLog =================================================================== --- projects/haf/trunk/gail/ChangeLog 2007-12-13 08:33:31 UTC (rev 14955) +++ projects/haf/trunk/gail/ChangeLog 2007-12-13 13:37:44 UTC (rev 14956) @@ -1,5 +1,11 @@ 2007-12-12 Attila Domokos <attila.domokos at nokia.com> + + * gail/gailbutton.c: implementing the click action as a press + event followed by a release event + * Fixes: NB#24426 (upstream bug #491617) +2007-12-12 Attila Domokos <attila.domokos at nokia.com> + * Makefile.am: exports gailrenderercell.h * upstream bug: #490174 Modified: projects/haf/trunk/gail/debian/changelog =================================================================== --- projects/haf/trunk/gail/debian/changelog 2007-12-13 08:33:31 UTC (rev 14955) +++ projects/haf/trunk/gail/debian/changelog 2007-12-13 13:37:44 UTC (rev 14956) @@ -1,3 +1,10 @@ +gail (1.18.0-osso11) unstable; urgency=low + + * gail/gailbutton.c: implementing click action as a press event followed by a release event + * Fixes: NB#24426 (upstream bug report #481617) + + -- Attila Domokos <attila.domokos at nokia.com> Thu, 13 Dec 2007 15:23:58 +0200 + gail (1.18.0-osso10) unstable; urgency=low * Makefile.am: exports gailrenderercell.h Modified: projects/haf/trunk/gail/gail/gailbutton.c =================================================================== --- projects/haf/trunk/gail/gail/gailbutton.c 2007-12-13 08:33:31 UTC (rev 14955) +++ projects/haf/trunk/gail/gail/gailbutton.c 2007-12-13 13:37:44 UTC (rev 14956) @@ -599,7 +599,27 @@ switch (action_number) { case 0: - gtk_widget_activate (widget); + /* first a press */ + + button->in_button = TRUE; + gtk_button_enter (button); + /* + * Simulate a button press event. calling gtk_button_pressed() does + * not get the job done for a GtkOptionMenu. + */ + tmp_event.button.type = GDK_BUTTON_PRESS; + tmp_event.button.window = widget->window; + tmp_event.button.button = 1; + tmp_event.button.send_event = TRUE; + tmp_event.button.time = GDK_CURRENT_TIME; + tmp_event.button.axes = NULL; + + gtk_widget_event (widget, &tmp_event); + + /* then a release */ + tmp_event.button.type = GDK_BUTTON_RELEASE; + + gtk_widget_event (widget, &tmp_event); break; case 1: button->in_button = TRUE;
- Previous message: [maemo-commits] r14955 - projects/haf/tags/gail
- Next message: [maemo-commits] r14957 - in projects/haf/trunk/freetype: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]