r31784 - in /desktop/unstable/gtk+3.0/debian: changelog patches/016_no_offscreen_widgets_grabbing.patch patches/series

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Tue Nov 22 08:44:43 UTC 2011


Author: mpitt
Date: Tue Nov 22 08:44:42 2011
New Revision: 31784

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=31784
Log:
Add 016_no_offscreen_widgets_grabbing.patch: Widgets inside
GtkOffscreenWindow seem like they should not be allowed to do
grab the mouse or whatever, as this can deactivate open menus.
(LP: #512427, GNOME #607668)

Added:
    desktop/unstable/gtk+3.0/debian/patches/016_no_offscreen_widgets_grabbing.patch
Modified:
    desktop/unstable/gtk+3.0/debian/changelog
    desktop/unstable/gtk+3.0/debian/patches/series

Modified: desktop/unstable/gtk+3.0/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/changelog?rev=31784&op=diff
==============================================================================
--- desktop/unstable/gtk+3.0/debian/changelog [utf-8] (original)
+++ desktop/unstable/gtk+3.0/debian/changelog [utf-8] Tue Nov 22 08:44:42 2011
@@ -3,6 +3,10 @@
   * Add 000git_gtk_tree_view_get_tooltip_context_annotation.patch: Fix
     gtk_tree_view_get_tooltip_context() transfer annotation, causing crashes
     when using this method from Python.
+  * Add 016_no_offscreen_widgets_grabbing.patch: Widgets inside
+    GtkOffscreenWindow seem like they should not be allowed to do
+    grab the mouse or whatever, as this can deactivate open menus.
+    (LP: #512427, GNOME #607668)
 
  -- Martin Pitt <mpitt at debian.org>  Tue, 22 Nov 2011 09:34:45 +0100
 

Added: desktop/unstable/gtk+3.0/debian/patches/016_no_offscreen_widgets_grabbing.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/patches/016_no_offscreen_widgets_grabbing.patch?rev=31784&op=file
==============================================================================
--- desktop/unstable/gtk+3.0/debian/patches/016_no_offscreen_widgets_grabbing.patch (added)
+++ desktop/unstable/gtk+3.0/debian/patches/016_no_offscreen_widgets_grabbing.patch [utf-8] Tue Nov 22 08:44:42 2011
@@ -1,0 +1,24 @@
+Description: Don't let offscreen widget do grabbing
+Author: Cody Russell <bratsche at gnome.org>
+Bug: https://bugzilla.gnome.org/show_bug.cgi?id=607668
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/512427
+
+Index: gtk+3.0-3.1.92/gtk/gtkmain.c
+===================================================================
+--- gtk+3.0-3.1.92.orig/gtk/gtkmain.c	2011-08-16 04:04:34.000000000 +0200
++++ gtk+3.0-3.1.92/gtk/gtkmain.c	2011-09-21 15:35:06.361475136 +0200
+@@ -2205,9 +2205,14 @@
+ {
+   GtkWindowGroup *group;
+   GtkWidget *old_grab_widget;
++  GtkWidget *toplevel;
+ 
+   g_return_if_fail (widget != NULL);
+ 
++  toplevel = gtk_widget_get_toplevel (widget);
++  if (toplevel && gdk_window_get_window_type (gtk_widget_get_window (toplevel)) == GDK_WINDOW_OFFSCREEN)
++    return;
++
+   if (!gtk_widget_has_grab (widget) && gtk_widget_is_sensitive (widget))
+     {
+       _gtk_widget_set_has_grab (widget, TRUE);

Modified: desktop/unstable/gtk+3.0/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gtk%2B3.0/debian/patches/series?rev=31784&op=diff
==============================================================================
--- desktop/unstable/gtk+3.0/debian/patches/series [utf-8] (original)
+++ desktop/unstable/gtk+3.0/debian/patches/series [utf-8] Tue Nov 22 08:44:42 2011
@@ -2,6 +2,7 @@
 001_static-linking-dont-query-immodules.patch
 003_gdk.pc_privates.patch
 015_default-fallback-icon-theme.patch
+016_no_offscreen_widgets_grabbing.patch
 022_disable-viqr-im-for-vi-locale.patch
 041_ia32-libs.patch
 042_treeview_single-focus.patch




More information about the pkg-gnome-commits mailing list