[Xfce4-commits] <xfce4-panel:andrzejr/deskbar-actions> actions: accumulated changes from andrzejr/deskbar-github branch.

Andrzej noreply at xfce.org
Mon Dec 12 16:00:06 CET 2011


Updating branch refs/heads/andrzejr/deskbar-actions
         to 9bd505177c7b1b30f9146a0e32e6772581ffde30 (commit)
       from f9af320ee3f50582039e8f596c87948a37029770 (commit)

commit 9bd505177c7b1b30f9146a0e32e6772581ffde30
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Mon Dec 12 23:42:51 2011 +0900

    actions: accumulated changes from andrzejr/deskbar-github branch.

 plugins/actions/actions.c |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c
index 6b50486..38e9301 100644
--- a/plugins/actions/actions.c
+++ b/plugins/actions/actions.c
@@ -57,6 +57,8 @@ static gboolean   actions_plugin_size_changed        (XfcePanelPlugin       *pan
 static void       actions_plugin_configure_plugin    (XfcePanelPlugin       *panel_plugin);
 static void       actions_plugin_orientation_changed (XfcePanelPlugin       *panel_plugin,
                                                       GtkOrientation         orientation);
+static void       actions_plugin_nrows_changed       (XfcePanelPlugin       *panel_plugin,
+                                                      guint                  nrows);
 static void       actions_plugin_pack                (ActionsPlugin         *plugin);
 static GPtrArray *actions_plugin_default_array       (void);
 static void       actions_plugin_menu                (GtkWidget             *button,
@@ -236,6 +238,7 @@ actions_plugin_class_init (ActionsPluginClass *klass)
   plugin_class->construct = actions_plugin_construct;
   plugin_class->free_data = actions_plugin_free_data;
   plugin_class->size_changed = actions_plugin_size_changed;
+  plugin_class->nrows_changed = actions_plugin_nrows_changed;
   plugin_class->configure_plugin = actions_plugin_configure_plugin;
   plugin_class->orientation_changed = actions_plugin_orientation_changed;
 
@@ -689,6 +692,15 @@ actions_plugin_orientation_changed (XfcePanelPlugin *panel_plugin,
 
 
 
+static void
+actions_plugin_nrows_changed (XfcePanelPlugin        *panel_plugin,
+                              guint                   nrows)
+{
+  actions_plugin_pack (XFCE_ACTIONS_PLUGIN (panel_plugin));
+}
+
+
+
 static gboolean
 actions_plugin_action_confirmation_time (gpointer data)
 {
@@ -1038,8 +1050,8 @@ actions_plugin_pack_idle (gpointer data)
 
       label = gtk_label_new (username);
       gtk_container_add (GTK_CONTAINER (button), label);
-      gtk_label_set_angle (GTK_LABEL (label),
-          orientation == GTK_ORIENTATION_HORIZONTAL ? 0 : 270);
+      //gtk_label_set_angle (GTK_LABEL (label),
+      //    (orientation == GTK_ORIENTATION_HORIZONTAL || deskbar_mode) ? 0 : 90);
       gtk_widget_show (label);
     }
 


More information about the Xfce4-commits mailing list