[maemo-commits] [maemo-commits] r10122 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Feb 21 15:01:58 EET 2007
Author: timj
Date: 2007-02-21 15:01:56 +0200 (Wed, 21 Feb 2007)
New Revision: 10122

Modified:
   projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog
   projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtkprogressbar.c
Log:
Wed Feb 21 13:43:33 2007  Tim Janik  <timj at gtk.org>

        * gtkprogressbar.c: adapt minimum progressbar height (used for progress
        bars without text) to maemo theme image height.




Modified: projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog
===================================================================
--- projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog	2007-02-21 13:01:23 UTC (rev 10121)
+++ projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog	2007-02-21 13:01:56 UTC (rev 10122)
@@ -1,3 +1,8 @@
+Wed Feb 21 13:43:33 2007  Tim Janik  <timj at gtk.org>
+
+	* gtkprogressbar.c: adapt minimum progressbar height (used for progress
+	bars without text) to maemo theme image height.
+
 2007-02-20  Lucas Rocha  <lucas.rocha at nokia.com>
 
 	* gtk/gtkiconview.c: selection painted around the item, not just the

Modified: projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtkprogressbar.c
===================================================================
--- projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtkprogressbar.c	2007-02-21 13:01:23 UTC (rev 10121)
+++ projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtkprogressbar.c	2007-02-21 13:01:56 UTC (rev 10122)
@@ -41,7 +41,15 @@
 
 
 #define MIN_HORIZONTAL_BAR_WIDTH   150
+#ifdef MAEMO_CHANGES
+/* maemo themes use 30pixel heigh progressbar images; so this setting is
+ * adjusted for progressbars to have the correct height, even when no text
+ * is being displayed.
+ */
+#define MIN_HORIZONTAL_BAR_HEIGHT  30
+#else /* !MAEMO_CHANGES */
 #define MIN_HORIZONTAL_BAR_HEIGHT  20
+#endif /* !MAEMO_CHANGES */
 #define MIN_VERTICAL_BAR_WIDTH     22
 #define MIN_VERTICAL_BAR_HEIGHT    80
 #define MAX_TEXT_LENGTH            80


More information about the maemo-commits mailing list