[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 22/41: Replace gtk_widget_size_request().

noreply at xfce.org noreply at xfce.org
Sat Aug 20 18:32:36 CEST 2016


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 348316a1fed1427ea5b23c88bca89dabff8a583e
Author: Graeme Gott <graeme at gottcode.org>
Date:   Fri Aug 12 07:13:50 2016 -0400

    Replace gtk_widget_size_request().
---
 panel-plugin/plugin.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panel-plugin/plugin.cpp b/panel-plugin/plugin.cpp
index a3e00b1..407b2a4 100644
--- a/panel-plugin/plugin.cpp
+++ b/panel-plugin/plugin.cpp
@@ -460,7 +460,7 @@ gboolean Plugin::size_changed(XfcePanelPlugin*, gint size)
 
 		// Put title next to icon if panel is wide enough
 		GtkRequisition label_size;
-		gtk_widget_size_request(GTK_WIDGET(m_button_label), &label_size);
+		gtk_widget_get_preferred_size(GTK_WIDGET(m_button_label), NULL, &label_size);
 		if (mode == XFCE_PANEL_PLUGIN_MODE_DESKBAR &&
 				wm_settings->button_title_visible &&
 				wm_settings->button_icon_visible &&

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


More information about the Xfce4-commits mailing list