From 3e621bbb8931e819da11578767356901fd598db9 Mon Sep 17 00:00:00 2001 From: Monsta Date: Wed, 22 Jul 2015 13:03:21 +0300 Subject: all themes: don't crash on notifications from Rhythmbox fixes https://github.com/mate-desktop/mate-notification-daemon/issues/55 --- src/themes/coco/coco-theme.c | 2 +- src/themes/nodoka/nodoka-theme.c | 2 +- src/themes/slider/theme.c | 2 +- src/themes/standard/theme.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/themes') diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c index 389fc9f..85ab042 100644 --- a/src/themes/coco/coco-theme.c +++ b/src/themes/coco/coco-theme.c @@ -650,7 +650,7 @@ clear_notification_actions(GtkWindow *nw) gtk_widget_hide(windata->actions_box); gtk_container_foreach(GTK_CONTAINER(windata->actions_box), - (GtkCallback)g_object_unref, NULL); + (GtkCallback)gtk_widget_destroy, NULL); } /* Move notification window */ diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c index 5b6c309..72fde60 100644 --- a/src/themes/nodoka/nodoka-theme.c +++ b/src/themes/nodoka/nodoka-theme.c @@ -1047,7 +1047,7 @@ clear_notification_actions(GtkWindow *nw) gtk_widget_hide(windata->actions_box); gtk_container_foreach(GTK_CONTAINER(windata->actions_box), - (GtkCallback)g_object_unref, NULL); + (GtkCallback)gtk_widget_destroy, NULL); } /* Move notification window */ diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index c0a4a8c..1bb6ecf 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -1069,7 +1069,7 @@ void clear_notification_actions(GtkWindow* nw) windata->pie_countdown = NULL; gtk_widget_hide(windata->actions_box); - gtk_container_foreach(GTK_CONTAINER(windata->actions_box), (GtkCallback) g_object_unref, NULL); + gtk_container_foreach(GTK_CONTAINER(windata->actions_box), (GtkCallback) gtk_widget_destroy, NULL); } void move_notification(GtkWidget* widget, int x, int y) diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c index 295c241..bf489f0 100644 --- a/src/themes/standard/theme.c +++ b/src/themes/standard/theme.c @@ -1053,7 +1053,7 @@ void clear_notification_actions(GtkWindow* nw) windata->pie_countdown = NULL; gtk_widget_hide(windata->actions_box); - gtk_container_foreach(GTK_CONTAINER(windata->actions_box), (GtkCallback) g_object_unref, NULL); + gtk_container_foreach(GTK_CONTAINER(windata->actions_box), (GtkCallback) gtk_widget_destroy, NULL); } void move_notification(GtkWidget* nw, int x, int y) -- cgit v1.2.1