[Xfce4-commits] <xfce4-panel:andrzejr/deskbar-github> pager: minor fix for the previous patch

Andrzej noreply at xfce.org
Mon Dec 12 11:40:27 CET 2011


Updating branch refs/heads/andrzejr/deskbar-github
         to e374978220d11adc1830b383d557817aca5a0a32 (commit)
       from a13e5d342d24c20b305a675af99e419eaecc5a0c (commit)

commit e374978220d11adc1830b383d557817aca5a0a32
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Mon Nov 21 23:37:06 2011 +0900

    pager: minor fix for the previous patch
    
    (just in case if the allocated area was different from the panel size)

 plugins/pager/pager.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/plugins/pager/pager.c b/plugins/pager/pager.c
index 91fa2b2..4da953b 100644
--- a/plugins/pager/pager.c
+++ b/plugins/pager/pager.c
@@ -432,20 +432,17 @@ pager_plugin_size_allocate (GtkWidget      *widget,
   XfcePanelPlugin    *panel_plugin;
   gboolean            deskbar_mode;
   GtkOrientation      orientation;
-  gint                size;
 
   plugin = XFCE_PAGER_PLUGIN (widget);
   panel_plugin = XFCE_PANEL_PLUGIN (widget);
   deskbar_mode = xfce_panel_plugin_get_deskbar_mode (panel_plugin);
   orientation = xfce_panel_plugin_get_orientation (panel_plugin);
-  size = xfce_panel_plugin_get_size (panel_plugin);
 
   if (plugin->miniature_view && deskbar_mode && orientation == GTK_ORIENTATION_VERTICAL)
     {
       /* Working around limitations of the wnck applet. */
       /* Wnck assumes that a horizontal applet is always used in a horizontal panel. */
-      allocation->height = size * plugin->aspect;
-      allocation->width = size;
+      allocation->height = allocation->width * plugin->aspect;
     }
   gtk_widget_size_allocate (plugin->pager, allocation);
 }


More information about the Xfce4-commits mailing list