aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2011-03-24 08:26:53 -0500
committerMichael Terry <mike@mterry.name>2011-03-24 08:26:53 -0500
commitcbc7a7cd54130c3f68565a6738e5471807f43df5 (patch)
treedc6d2fc32abc3616307d09f6a06cacffb0a1046a
parentf76208b252ab4eeec71b9ac305ff5dd8283571d5 (diff)
downloadayatana-indicator-datetime-cbc7a7cd54130c3f68565a6738e5471807f43df5.tar.gz
ayatana-indicator-datetime-cbc7a7cd54130c3f68565a6738e5471807f43df5.tar.bz2
ayatana-indicator-datetime-cbc7a7cd54130c3f68565a6738e5471807f43df5.zip
make map look insensitive if it is
-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;
}