pidgin: 331dd310: Fix size constraints for vertical progre...
sadrul at pidgin.im
sadrul at pidgin.im
Sun Apr 12 17:36:14 EDT 2009
-----------------------------------------------------------------
Revision: 331dd310d018e9ecbd997e8af14ebcfc79277318
Ancestor: 958b2ee13950a6cddd94ab271e24e8b7a03b186e
Author: sadrul at pidgin.im
Date: 2009-04-12T21:32:35
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/331dd310d018e9ecbd997e8af14ebcfc79277318
Modified files:
finch/libgnt/gntprogressbar.c
ChangeLog:
Fix size constraints for vertical progressbars.
-------------- next part --------------
============================================================
--- finch/libgnt/gntprogressbar.c 814b9edb0867cdabd820e508f76dc268183683ad
+++ finch/libgnt/gntprogressbar.c ddb5aa54f2174731fd535a009e44138fb64e481b
@@ -144,7 +144,7 @@ gnt_progress_bar_init (GTypeInstance *in
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 @@ gnt_progress_bar_set_orientation (GntPro
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))
More information about the Commits
mailing list