[maemo-commits] [maemo-commits] r18884 - in projects/haf/trunk/gtk+: . gtk
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Jul 20 14:52:38 EEST 2009
- Previous message: [maemo-commits] r18883 - projects/haf/trunk/ke-recv/debian
- Next message: [maemo-commits] r18885 - in projects/haf/trunk/gtk+: . gdk/x11
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: kris Date: 2009-07-20 14:52:36 +0300 (Mon, 20 Jul 2009) New Revision: 18884 Modified: projects/haf/trunk/gtk+/ChangeLog projects/haf/trunk/gtk+/gtk/gtkmenu.c Log: 2009-07-20 Kristian Rietveld <kris at lanedo.com> Fixes: NB#126846 - Media player crashing at gtk_widget_real_tap_and_hold if user open and close camera from CSM * gtk/gtkmenu.c (gtk_menu_window_event): Don't pass through the DELETE event sent by the WM to the menu. Instead, call gtk_menu_shell_cancel() that will probably hide/unmap the menu. Modified: projects/haf/trunk/gtk+/ChangeLog =================================================================== --- projects/haf/trunk/gtk+/ChangeLog 2009-07-20 09:57:35 UTC (rev 18883) +++ projects/haf/trunk/gtk+/ChangeLog 2009-07-20 11:52:36 UTC (rev 18884) @@ -1,3 +1,12 @@ +2009-07-20 Kristian Rietveld <kris at lanedo.com> + + Fixes: NB#126846 - Media player crashing at + gtk_widget_real_tap_and_hold if user open and close camera from CSM + + * gtk/gtkmenu.c (gtk_menu_window_event): Don't pass through the DELETE + event sent by the WM to the menu. Instead, call + gtk_menu_shell_cancel() that will probably hide/unmap the menu. + 2009-07-15 Claudio Saavedra <csaavedra at igalia.com> Release 2:2.14.7-1maemo2 Modified: projects/haf/trunk/gtk+/gtk/gtkmenu.c =================================================================== --- projects/haf/trunk/gtk+/gtk/gtkmenu.c 2009-07-20 09:57:35 UTC (rev 18883) +++ projects/haf/trunk/gtk+/gtk/gtkmenu.c 2009-07-20 11:52:36 UTC (rev 18884) @@ -992,7 +992,12 @@ } break; case GDK_DELETE: - handled = gtk_widget_event (menu, event); + if (window == GTK_MENU (menu)->toplevel && + GTK_WIDGET_MAPPED (GTK_MENU (menu)->toplevel)) + { + gtk_menu_shell_cancel (GTK_MENU_SHELL (menu)); + handled = TRUE; + } break; #endif /* MAEMO_CHANGES */ default:
- Previous message: [maemo-commits] r18883 - projects/haf/trunk/ke-recv/debian
- Next message: [maemo-commits] r18885 - in projects/haf/trunk/gtk+: . gdk/x11
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]