[Xfce4-commits] <exo:stephan/icon-bar-improvements> Remove MAX ( ) statement from exo_icon_bar_size_allocate

Stephan Arts noreply at xfce.org
Fri Jan 13 18:54:01 CET 2012


Updating branch refs/heads/stephan/icon-bar-improvements
         to fb6cb01b830a93dc0cdd10ea248e7a8e6c2b8a57 (commit)
       from c0df81ce0469aa64a903384e7f8fabc99772d5f5 (commit)

commit fb6cb01b830a93dc0cdd10ea248e7a8e6c2b8a57
Author: Stephan Arts <stephan at xfce.org>
Date:   Fri Jan 13 18:50:28 2012 +0100

    Remove MAX ( ) statement from exo_icon_bar_size_allocate
    
    Make sure the exo_icon_bar can shrink too.

 exo/exo-icon-bar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/exo/exo-icon-bar.c b/exo/exo-icon-bar.c
index ee46425..a4fac0b 100644
--- a/exo/exo-icon-bar.c
+++ b/exo/exo-icon-bar.c
@@ -708,12 +708,12 @@ exo_icon_bar_size_allocate (GtkWidget     *widget,
 
   if (icon_bar->priv->orientation == GTK_ORIENTATION_VERTICAL)
     {
-      icon_bar->priv->width = MAX (icon_bar->priv->width, allocation->width);
+      icon_bar->priv->width = allocation->width;
       icon_bar->priv->item_width = icon_bar->priv->width;
     }
   else
     {
-      icon_bar->priv->height = MAX (icon_bar->priv->height, allocation->height);
+      icon_bar->priv->height = allocation->height;
       icon_bar->priv->item_height = icon_bar->priv->height;
     }
 }


More information about the Xfce4-commits mailing list