[gnome-control-center] datetime: Use constants for pin nail's location
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] datetime: Use constants for pin nail's location
- Date: Mon, 22 Oct 2012 08:53:17 +0000 (UTC)
commit 43f33b13873bcac42d0d0eec228c29f4f2150826
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 18 09:08:32 2012 +0200
datetime: Use constants for pin nail's location
panels/datetime/cc-timezone-map.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/datetime/cc-timezone-map.c b/panels/datetime/cc-timezone-map.c
index cf13c5a..7ed830e 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]