[Xfce4-commits] <xfce4-panel:nick/gtk3> Revert "PanelPlugin: do not rely on set_size_request in Gtk3"
Andrzej
noreply at xfce.org
Wed Apr 17 22:16:01 CEST 2013
Updating branch refs/heads/nick/gtk3
to 29a8062405da09100b0a32d5bf55377d6fbe3340 (commit)
from c261aaa548b99d7facc09f4d7b58773e2b82766d (commit)
commit 29a8062405da09100b0a32d5bf55377d6fbe3340
Author: Andrzej <ndrwrdck at gmail.com>
Date: Wed Apr 17 19:23:50 2013 +0100
Revert "PanelPlugin: do not rely on set_size_request in Gtk3"
Looks like widgets should set a smaller minimum size request instead.
This reverts commit 91f5dd68b05d9890cb3d474e1f6c3595b136f100.
libxfce4panel/xfce-panel-plugin.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/libxfce4panel/xfce-panel-plugin.c b/libxfce4panel/xfce-panel-plugin.c
index 89e0c88..ce694a6 100644
--- a/libxfce4panel/xfce-panel-plugin.c
+++ b/libxfce4panel/xfce-panel-plugin.c
@@ -1364,13 +1364,8 @@ xfce_panel_plugin_set_size (XfcePanelPluginProvider *provider,
plugin_signals[SIZE_CHANGED], 0, real_size, &handled);
/* handle the size when not done by the plugin */
- /* do not use set_size_request in Gtk3 (can only increase size) */
-#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_widget_queue_resize (GTK_WIDGET (plugin));
-#else
if (!handled)
gtk_widget_set_size_request (GTK_WIDGET (plugin), real_size, real_size);
-#endif
g_object_notify_by_pspec (G_OBJECT (plugin), plugin_props[PROP_SIZE]);
}
More information about the Xfce4-commits
mailing list