summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/clock/clock-map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/applets/clock/clock-map.c b/applets/clock/clock-map.c
index 5823f6ea..13032c54 100644
--- a/applets/clock/clock-map.c
+++ b/applets/clock/clock-map.c
@@ -252,10 +252,7 @@ clock_map_expose (GtkWidget *this, GdkEventExpose *event)
#endif
style = gtk_widget_get_style (this);
-#if GTK_CHECK_VERSION (3, 0, 0)
- width = gdk_pixbuf_get_width (priv->shadow_map_pixbuf);
- height = gdk_pixbuf_get_height (priv->shadow_map_pixbuf);
-#else
+#if !GTK_CHECK_VERSION (3, 0, 0)
window = gtk_widget_get_window (this);
gtk_widget_get_allocation (this, &allocation);
#endif
@@ -266,6 +263,9 @@ clock_map_expose (GtkWidget *this, GdkEventExpose *event)
}
#if GTK_CHECK_VERSION (3, 0, 0)
+ width = gdk_pixbuf_get_width (priv->shadow_map_pixbuf);
+ height = gdk_pixbuf_get_height (priv->shadow_map_pixbuf);
+
gdk_cairo_set_source_pixbuf (cr, priv->shadow_map_pixbuf, 0, 0);
cairo_rectangle (cr, 0, 0, width, height);
cairo_paint (cr);