From b0a1739abb00bb6c62811c5c0f1e766d0ef13140 Mon Sep 17 00:00:00 2001 From: Philipp Kerling Date: Fri, 27 Dec 2013 20:08:32 +0100 Subject: Check value type of notification hint 'urgency' before dereferencing in nodoka and coco theme --- src/themes/coco/coco-theme.c | 2 +- src/themes/nodoka/nodoka-theme.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index 71b62fb..2c257e7 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -602,7 +602,7 @@ set_notification_hints(GtkWindow *nw, GHashTable *hints) value = (GValue *)g_hash_table_lookup(hints, "urgency"); - if (value != NULL) + if (value != NULL && G_VALUE_HOLDS_UCHAR(value)) { windata->urgency = g_value_get_uchar(value); diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index 0998d0b..9ec831f 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -1005,7 +1005,7 @@ set_notification_hints(GtkWindow *nw, GHashTable *hints) value = (GValue *)g_hash_table_lookup(hints, "urgency"); - if (value != NULL) + if (value != NULL && G_VALUE_HOLDS_UCHAR(value)) { windata->urgency = g_value_get_uchar(value); -- cgit v1.2.1 From 38b5f5e745a8ce2aa6696bd3d80d2cb8f35a469b Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 15 Jan 2014 11:03:28 +0100 Subject: capplet: Fix typos in manpage --- src/capplet/mate-notification-properties.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/capplet/mate-notification-properties.1 b/src/capplet/mate-notification-properties.1 index c263aee..2053aa4 100644 --- a/src/capplet/mate-notification-properties.1 +++ b/src/capplet/mate-notification-properties.1 @@ -12,7 +12,7 @@ mate-notification-properties \- Set up the options for desktop notifications This manual page documents briefly the \fBmate-notification-properties\fR command. .PP -\fBmate-notification-properties\fR is an utility to set up various +\fBmate-notification-properties\fR is a utility to set up various options related to desktop notifications. .SH "AUTHOR" @@ -21,5 +21,5 @@ options related to desktop notifications. written by Jonh Wendell and Perberos . This manual page was written by Francois Wendling for the -notification-properties in Debian GNU/Linux system (but may be used by others) +notification-properties in Debian project (but may be used by others) and adapted for MATE by Stefano Karapetsas . -- cgit v1.2.1 From 11c28cc9c9c288461545e6ae78dd59926a5425b7 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 15 Jan 2014 11:11:32 +0100 Subject: capplet: Add keywords in desktop file Thanks to Mike Gabriel Closes #27 https://github.com/mate-desktop/mate-notification-daemon/issues/27 --- src/capplet/mate-notification-properties.desktop.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/capplet/mate-notification-properties.desktop.in b/src/capplet/mate-notification-properties.desktop.in index f7b6b61..2bbdace 100644 --- a/src/capplet/mate-notification-properties.desktop.in +++ b/src/capplet/mate-notification-properties.desktop.in @@ -8,4 +8,4 @@ Type=Application StartupNotify=true Categories=GTK;Settings;DesktopSettings; OnlyShowIn=MATE; - +Keywords=MATE;Notification;Theme; -- cgit v1.2.1