summaryrefslogtreecommitdiff
path: root/src/notification.c
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@gnome.org>2015-05-29 14:29:12 +0200
committerArx Cruz <arxcruz@gnome.org>2015-05-29 14:29:12 +0200
commit160f0442c62579b79b15f953a9e6766a833952fd (patch)
tree28159b9897f3aa4281ac2c10634892aa244e345b /src/notification.c
parentFixing deprecated declarations (diff)
downloadzenity-160f0442c62579b79b15f953a9e6766a833952fd.tar.gz
zenity-160f0442c62579b79b15f953a9e6766a833952fd.tar.bz2
zenity-160f0442c62579b79b15f953a9e6766a833952fd.zip
Fix GLib critical messages
Diffstat (limited to 'src/notification.c')
-rw-r--r--src/notification.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/notification.c b/src/notification.c
index 2bdd05b6..a4355a1e 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -342,9 +342,11 @@ zenity_notification (ZenityData *data, ZenityNotificationData *notification_data
NULL);
/* set the notification hints for the displayed notification */
- notification_hints = zenity_notification_parse_hints_array (notification_data->notification_hints);
- zenity_notification_set_hints(notification, notification_hints);
- g_hash_table_unref (notification_hints);
+ if (notification_data->notification_hints != NULL) {
+ notification_hints = zenity_notification_parse_hints_array (notification_data->notification_hints);
+ zenity_notification_set_hints(notification, notification_hints);
+ g_hash_table_unref (notification_hints);
+ }
/* Show icon and wait */
error = NULL;
bgstack15