xfce4-panel autohide and menu plugin

Jasper Huijsmans jasper at xfce.org
Thu Apr 20 21:51:09 CEST 2006


Nikolas Arend schreef:
> Hi,
> 
> this is perhaps not a bug exactly but I'll file a bug report if you wish.
> The panel, when set to "autohide", won't hide again after opening the 
> application menu (xfce menu plugin) and either choosing an application 
> to launch or clicking elsewhere on the desktop (to make the app menu 
> disappear). I have to hover over the panel with the mouse to make it 
> hide again (svn revision 21111). I'm not sure whether it's a problem 
> with the panel or the menu plugin.
> 

The menu grabs the mouse, so the panel doesn't 'see' that the mouse is 
no longer on the panel.

I need to check if I created a solution for this in the plugin library. 
I know I wanted to add something, but I'm not sure I got around to it...

Hmm, seems I did. Brian, I committed 1 line change below, hope you don't 
mind.

	Jasper

Index: panel-plugin/desktop-menu-plugin.c
===================================================================
--- panel-plugin/desktop-menu-plugin.c  (revision 21118)
+++ panel-plugin/desktop-menu-plugin.c  (working copy)
@@ -350,6 +350,7 @@
                  G_CALLBACK(menu_deactivated), dmp);
          g_object_set_data(G_OBJECT(menu), "sig_id", GUINT_TO_POINTER(id));
          gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), TRUE);
+        xfce_panel_plugin_register_menu (dmp->plugin, GTK_MENU(menu));
          gtk_menu_popup(GTK_MENU(menu), NULL, NULL,
                         (GtkMenuPositionFunc)dmp_position_menu, dmp,
                         1, gtk_get_current_event_time());





More information about the Xfce4-dev mailing list