summaryrefslogtreecommitdiff
path: root/src/themes/coco/coco-theme.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes/coco/coco-theme.c')
-rw-r--r--src/themes/coco/coco-theme.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index ae4037b..b72c743 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -47,7 +47,8 @@ typedef struct
GtkWidget *pie_countdown;
gboolean composited;
-
+ gboolean action_icons;
+
int width;
int height;
int last_width;
@@ -680,11 +681,12 @@ void
set_notification_hints(GtkWindow *nw, GHashTable *hints)
{
WindowData *windata = g_object_get_data(G_OBJECT(nw), "windata");
- GValue *value;
+ GValue *value = NULL, *icon_value = NULL;
g_assert(windata != NULL);
value = (GValue *)g_hash_table_lookup(hints, "urgency");
+ icon_value = (GValue *)g_hash_table_lookup(hints, "action-icons");
if (value != NULL && G_VALUE_HOLDS_UCHAR(value))
{
@@ -696,6 +698,12 @@ set_notification_hints(GtkWindow *nw, GHashTable *hints)
gtk_window_set_title(GTK_WINDOW(nw), "Notification");
}
}
+
+ /* Determine if action-icons have been requested */
+ if (icon_value != NULL && G_VALUE_HOLDS_BOOLEAN(icon_value))
+ {
+ windata->action_icons = g_value_get_boolean(icon_value);
+ }
}
/* Notification tick */