[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 454/473: Create menu window at end of plugin initialization.

noreply at xfce.org noreply at xfce.org
Tue Feb 17 00:00:24 CET 2015


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

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit 7a6916d92da6fb2ee42736eff174d440d7db0ad9
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Feb 10 08:34:03 2015 -0500

    Create menu window at end of plugin initialization.
---
 panel-plugin/plugin.cpp |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/panel-plugin/plugin.cpp b/panel-plugin/plugin.cpp
index bfe34bb..eb0c36c 100644
--- a/panel-plugin/plugin.cpp
+++ b/panel-plugin/plugin.cpp
@@ -119,10 +119,6 @@ Plugin::Plugin(XfcePanelPlugin* plugin) :
 		}
 	}
 
-	// Create menu window
-	m_window = new Window;
-	g_signal_connect_slot<GtkWidget*>(m_window->get_widget(), "unmap", &Plugin::menu_hidden, this);
-
 	// Create toggle button
 	m_button = xfce_panel_create_toggle_button();
 	gtk_widget_set_name(m_button, "whiskermenu-button");
@@ -180,6 +176,10 @@ Plugin::Plugin(XfcePanelPlugin* plugin) :
 
 	g_signal_connect_slot<GtkWidget*,GtkStyle*>(m_button, "style-set", &Plugin::update_size, this);
 	g_signal_connect_slot<GtkWidget*,GdkScreen*>(m_button, "screen-changed", &Plugin::update_size, this);
+
+	// Create menu window
+	m_window = new Window;
+	g_signal_connect_slot<GtkWidget*>(m_window->get_widget(), "unmap", &Plugin::menu_hidden, this);
 }
 
 //-----------------------------------------------------------------------------

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


More information about the Xfce4-commits mailing list