[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 453/473: Reduce amount of times plugin size is changed.

noreply at xfce.org noreply at xfce.org
Tue Feb 17 00:00:23 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 86159a95de4d436b5e00ff5257b33ff1e622f6bd
Author: Graeme Gott <graeme at gottcode.org>
Date:   Tue Feb 10 08:33:09 2015 -0500

    Reduce amount of times plugin size is changed.
---
 panel-plugin/plugin.cpp |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/plugin.cpp b/panel-plugin/plugin.cpp
index b487adc..bfe34bb 100644
--- a/panel-plugin/plugin.cpp
+++ b/panel-plugin/plugin.cpp
@@ -129,8 +129,6 @@ Plugin::Plugin(XfcePanelPlugin* plugin) :
 	gtk_button_set_relief(GTK_BUTTON(m_button), GTK_RELIEF_NONE);
 	gtk_button_set_focus_on_click(GTK_BUTTON(m_button), false);
 	g_signal_connect_slot(m_button, "toggled", &Plugin::button_toggled, this);
-	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);
 	gtk_widget_show(m_button);
 
 	m_button_box = GTK_BOX(gtk_hbox_new(false, 2));
@@ -179,6 +177,9 @@ Plugin::Plugin(XfcePanelPlugin* plugin) :
 #else
 	orientation_changed(m_plugin, xfce_panel_plugin_get_orientation(m_plugin));
 #endif
+
+	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);
 }
 
 //-----------------------------------------------------------------------------

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


More information about the Xfce4-commits mailing list