diff options
Diffstat (limited to 'src/themes/nodoka/nodoka-theme.c')
-rw-r--r-- | src/themes/nodoka/nodoka-theme.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index b4420bd..2119f61 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -64,7 +64,8 @@ typedef struct ArrowParameters arrow; gboolean composited; - + gboolean action_icons; + int width; int height; int last_width; @@ -1084,11 +1085,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)) { @@ -1100,6 +1102,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 */ |