# HG changeset patch # User Sadrul Habib Chowdhury # Date 1239571955 0 # Node ID 0a5823a582792aa214bdb0bdd716a087a081fd5e # Parent 09ad3b69711fe18ec3cd05b617feb6b4fdce5520 Fix size constraints for vertical progressbars. diff -r 09ad3b69711f -r 0a5823a58279 finch/libgnt/gntprogressbar.c --- a/finch/libgnt/gntprogressbar.c Sun Apr 12 21:28:59 2009 +0000 +++ b/finch/libgnt/gntprogressbar.c Sun Apr 12 21:32:35 2009 +0000 @@ -144,7 +144,7 @@ gnt_widget_set_take_focus (widget, FALSE); GNT_WIDGET_SET_FLAGS (widget, GNT_WIDGET_NO_BORDER | GNT_WIDGET_NO_SHADOW | GNT_WIDGET_GROW_X); - widget->priv.minw = 1; + widget->priv.minw = 8; widget->priv.minh = 1; priv->show_value = TRUE; @@ -203,14 +203,20 @@ GntProgressBarOrientation orientation) { GntProgressBarPrivate *priv = GNT_PROGRESS_BAR_GET_PRIVATE (pbar); + GntWidget *widget = GNT_WIDGET(pbar); + priv->orientation = orientation; if (orientation == GNT_PROGRESS_LEFT_TO_RIGHT || orientation == GNT_PROGRESS_RIGHT_TO_LEFT) { GNT_WIDGET_SET_FLAGS(pbar, GNT_WIDGET_GROW_X); GNT_WIDGET_UNSET_FLAGS(pbar, GNT_WIDGET_GROW_Y); + widget->priv.minw = 8; + widget->priv.minh = 1; } else { GNT_WIDGET_UNSET_FLAGS(pbar, GNT_WIDGET_GROW_X); GNT_WIDGET_SET_FLAGS(pbar, GNT_WIDGET_GROW_Y); + widget->priv.minw = 1; + widget->priv.minh = 8; } if ((GNT_WIDGET_FLAGS(pbar) & GNT_WIDGET_MAPPED))