Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gtk/engine
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin@sipsolutions.net>2007-06-03 17:58:58 (GMT)
committer Benjamin Berg <benjamin@sipsolutions.net>2007-06-03 17:58:58 (GMT)
commit6c7fc1372d7b8ee38716516a188dfbdaf1ea5da6 (patch)
treee851c84da9680f4c728302de90d726cb9faa2cc3 /gtk/engine
parentd751de9e8a5c580845a9a1287a4aad1932266f5b (diff)
Make the trough shorter, so that the slider extends over the ends a little bit.
Diffstat (limited to 'gtk/engine')
-rw-r--r--gtk/engine/sugar-info.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/engine/sugar-info.c b/gtk/engine/sugar-info.c
index 452aa3a..d37a96e 100644
--- a/gtk/engine/sugar-info.c
+++ b/gtk/engine/sugar-info.c
@@ -18,6 +18,7 @@
*/
#include <gtk/gtk.h>
+#include <math.h>
#include "sugar-info.h"
#define HINT(str) (info->rc_style->hint && g_str_equal (info->rc_style->hint, str))
@@ -97,12 +98,18 @@ sugar_fill_range_info (SugarRangeInfo *range_info, gboolean trough)
info->pos.x += (info->pos.width - width) / 2;
info->pos.width = width;
+
+ info->pos.y += floor(width/2.0);
+ info->pos.height -= 2*floor(width/2.0);
break;
case GTK_ORIENTATION_HORIZONTAL:
width = (info->pos.height - line_width) / 2.0 + line_width;
info->pos.y += (info->pos.height - width) / 2;
info->pos.height = width;
+
+ info->pos.x += floor(width/2.0);
+ info->pos.width -= 2*floor(width/2.0);
break;
}