aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmap/cc-timezone-map.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libmap/cc-timezone-map.c b/libmap/cc-timezone-map.c
index ec12c84..8e4a5b8 100644
--- a/libmap/cc-timezone-map.c
+++ b/libmap/cc-timezone-map.c
@@ -788,6 +788,13 @@ cc_timezone_map_draw (GtkWidget *widget,
}
if (!priv->location) {
+ /* Check if insensitive */
+ if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE) {
+ cairo_set_source_rgba(cr, 1, 1, 1, 0.5);
+ cairo_rectangle(cr, 0, 0, alloc.width, alloc.height);
+ cairo_fill(cr);
+ }
+
return TRUE;
}
@@ -840,6 +847,13 @@ cc_timezone_map_draw (GtkWidget *widget,
g_object_unref (pin);
}
+ /* Check if insensitive */
+ if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE) {
+ cairo_set_source_rgba(cr, 1, 1, 1, 0.5);
+ cairo_rectangle(cr, 0, 0, alloc.width, alloc.height);
+ cairo_fill(cr);
+ }
+
return TRUE;
}