[gnome-control-center] display: use a smaller top bar size



commit e2c486f979857b2dd6951de62b74cf7521e5cc51
Author: William Jon McCann <jmccann redhat com>
Date:   Sat Nov 20 21:28:55 2010 -0500

    display: use a smaller top bar size

 panels/display/xrandr-capplet.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/panels/display/xrandr-capplet.c b/panels/display/xrandr-capplet.c
index 2661718..1ad3940 100644
--- a/panels/display/xrandr-capplet.c
+++ b/panels/display/xrandr-capplet.c
@@ -38,6 +38,8 @@
 
 #include "xrandr-capplet.h"
 
+#define TOP_BAR_HEIGHT 10
+
 typedef struct App App;
 typedef struct GrabInfo GrabInfo;
 
@@ -1898,7 +1900,7 @@ paint_output (App *app, cairo_t *cr, int i)
       GDateTime *dt;
 
       /* top bar */
-      cairo_rectangle (cr, x, y, w * scale + 0.5, 20);
+      cairo_rectangle (cr, x, y, w * scale + 0.5, TOP_BAR_HEIGHT);
       cairo_set_source_rgb (cr, 0, 0, 0);
       foo_scroll_area_add_input_from_fill (FOO_SCROLL_AREA (app->area),
                                            cr,
@@ -1932,7 +1934,7 @@ paint_output (App *app, cairo_t *cr, int i)
 
       cairo_move_to (cr,
                      x + ((w * scale + 0.5) - factor * log_extent.width) / 2,
-                     y + (20 - factor * log_extent.height) / 2);
+                     y + (TOP_BAR_HEIGHT - factor * log_extent.height) / 2);
 
       cairo_scale (cr, factor, factor);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]