From 43f33b13873bcac42d0d0eec228c29f4f2150826 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 18 Oct 2012 09:08:32 +0200 Subject: [PATCH] datetime: Use constants for pin nail's location --- panels/datetime/cc-timezone-map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/panels/datetime/cc-timezone-map.c b/panels/datetime/cc-timezone-map.c index cf13c5a61..7ed830ed0 100644 --- a/panels/datetime/cc-timezone-map.c +++ b/panels/datetime/cc-timezone-map.c @@ -32,6 +32,9 @@ G_DEFINE_TYPE (CcTimezoneMap, cc_timezone_map, GTK_TYPE_WIDGET) #define TIMEZONE_MAP_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), CC_TYPE_TIMEZONE_MAP, CcTimezoneMapPrivate)) +#define PIN_HOT_POINT_X 8 +#define PIN_HOT_POINT_Y 14 + typedef struct { @@ -389,7 +392,7 @@ cc_timezone_map_draw (GtkWidget *widget, if (pin) { - gdk_cairo_set_source_pixbuf (cr, pin, pointx - 8, pointy - 14); + gdk_cairo_set_source_pixbuf (cr, pin, pointx - PIN_HOT_POINT_X, pointy - PIN_HOT_POINT_Y); cairo_paint (cr); } }