[Xfce4-commits] <xfce4-panel:devel> Review ActionsPlugin.

Nick Schermer noreply at xfce.org
Wed Jan 20 21:08:22 CET 2010


Updating branch refs/heads/devel
         to 5befb8b5df9faf0fbfc5eb6f3a644e34007781c1 (commit)
       from 46f08bf98e792b9060ae22d82693f43e947d13ef (commit)

commit 5befb8b5df9faf0fbfc5eb6f3a644e34007781c1
Author: Nick Schermer <nick at xfce.org>
Date:   Wed Jan 20 20:34:20 2010 +0100

    Review ActionsPlugin.

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

diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c
index 9af7dfc..8f13f90 100644
--- a/plugins/actions/actions.c
+++ b/plugins/actions/actions.c
@@ -77,14 +77,11 @@ ActionEntry;
 
 struct _ActionsPluginClass
 {
-  /* parent class */
   XfcePanelPluginClass __parent__;
-
 };
 
 struct _ActionsPlugin
 {
-  /* parent type */
   XfcePanelPlugin __parent__;
 
   /* widgets */
@@ -168,7 +165,6 @@ actions_plugin_init (ActionsPlugin *plugin)
   GtkWidget   *widget;
   ActionEntry *entry = &action_entries[ACTION_LOG_OUT_DIALOG];
 
-  /* initialize */
   plugin->first_action = ACTION_LOG_OUT_DIALOG;
   plugin->second_action = ACTION_DISABLED;
 
@@ -314,10 +310,8 @@ actions_plugin_size_changed (XfcePanelPlugin *panel_plugin,
                              gint             size)
 {
   ActionsPlugin *plugin = XFCE_ACTIONS_PLUGIN (panel_plugin);
-  gint           width, height;
-
-  /* init size */
-  width = height = size;
+  gint           width = size;
+  gint           height = size;
 
   if (plugin->second_action != ACTION_DISABLED)
     {



More information about the Xfce4-commits mailing list