[Xfce4-commits] <xfce4-panel:devel> Force the plugin to resize when the orientation changes.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:26:39 CEST 2009
Updating branch refs/heads/devel
to afcf36dcb8be9d3d5dcac3ef55486de4f1b1f49f (commit)
from a07574610ac7a98de9f768e0ec6a1bcf02292b06 (commit)
commit afcf36dcb8be9d3d5dcac3ef55486de4f1b1f49f
Author: Nick Schermer <nick at xfce.org>
Date: Sat Feb 7 20:23:10 2009 +0100
Force the plugin to resize when the orientation changes.
plugins/separator/separator.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/plugins/separator/separator.c b/plugins/separator/separator.c
index 78cfd4d..ef51062 100644
--- a/plugins/separator/separator.c
+++ b/plugins/separator/separator.c
@@ -44,6 +44,8 @@ static gboolean separator_plugin_size_changed (XfcePanelPlugin
gint size);
static void separator_plugin_save (XfcePanelPlugin *panel_plugin);
static void separator_plugin_configure_plugin (XfcePanelPlugin *panel_plugin);
+static void tasklist_plugin_orientation_changed (XfcePanelPlugin *panel_plugin,
+ GtkOrientation orientation);
static void separator_plugin_property_changed (XfconfChannel *channel,
const gchar *property_name,
const GValue *value,
@@ -109,6 +111,7 @@ separator_plugin_class_init (SeparatorPluginClass *klass)
plugin_class->save = separator_plugin_save;
plugin_class->size_changed = separator_plugin_size_changed;
plugin_class->configure_plugin = separator_plugin_configure_plugin;
+ plugin_class->orientation_changed = tasklist_plugin_orientation_changed;
}
@@ -313,6 +316,17 @@ separator_plugin_configure_plugin (XfcePanelPlugin *panel_plugin)
static void
+tasklist_plugin_orientation_changed (XfcePanelPlugin *panel_plugin,
+ GtkOrientation orientation)
+{
+ /* for a size change to set the widget size request properly */
+ separator_plugin_size_changed (panel_plugin,
+ xfce_panel_plugin_get_size (panel_plugin));
+}
+
+
+
+static void
separator_plugin_property_changed (XfconfChannel *channel,
const gchar *property_name,
const GValue *value,
More information about the Xfce4-commits
mailing list