[Xfce4-commits] [xfce/thunar] 02/05: Fix Gdk-CRITICAL error

noreply at xfce.org noreply at xfce.org
Fri Mar 27 23:33:16 CET 2015


This is an automated email from the git hooks/post-receive script.

hjudt pushed a commit to branch master
in repository xfce/thunar.

commit 0f5aa4d038886d5c39306f0f95ca8babf4bc3586
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Wed Mar 25 00:10:00 2015 +0100

    Fix Gdk-CRITICAL error
    
    Call gtk_grab_add() after the context menu has been mapped to fix the
    following error:
    
      Gdk-CRITICAL **: IA__gdk_window_get_window_type:
                       assertion 'GDK_IS_WINDOW (window)' failed
---
 thunar/thunar-gtk-extensions.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/thunar/thunar-gtk-extensions.c b/thunar/thunar-gtk-extensions.c
index b66601f..0c315e7 100644
--- a/thunar/thunar-gtk-extensions.c
+++ b/thunar/thunar-gtk-extensions.c
@@ -165,10 +165,10 @@ thunar_gtk_menu_run (GtkMenu            *menu,
     gtk_menu_set_screen (menu, gtk_widget_get_screen (GTK_WIDGET (parent)));
 
   /* run an internal main loop */
-  gtk_grab_add (GTK_WIDGET (menu));
   loop = g_main_loop_new (NULL, FALSE);
   signal_id = g_signal_connect_swapped (G_OBJECT (menu), "deactivate", G_CALLBACK (g_main_loop_quit), loop);
   gtk_menu_popup (menu, NULL, NULL, func, data, button, activate_time);
+  gtk_grab_add (GTK_WIDGET (menu));
   g_main_loop_run (loop);
   g_signal_handler_disconnect (G_OBJECT (menu), signal_id);
   g_main_loop_unref (loop);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list