summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-29 22:29:17 +0200
committerinfirit <[email protected]>2015-07-29 22:29:17 +0200
commitd373ea3eadb4a09da7cb1c730ea6d3489bfc67e2 (patch)
treeea589d15b4494ab54024fb30537834ad4b4281dc /src
parentb68faeaf45a08ccd15c289e542cfc85dfe7cf4aa (diff)
downloadmate-notification-daemon-d373ea3eadb4a09da7cb1c730ea6d3489bfc67e2.tar.bz2
mate-notification-daemon-d373ea3eadb4a09da7cb1c730ea6d3489bfc67e2.tar.xz
standard: Fix crash due to incorrectly destroying widget
Fixes #69
Diffstat (limited to 'src')
-rw-r--r--src/themes/standard/theme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index da7af15..09aa628 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -747,7 +747,7 @@ GtkWindow* create_notification(UrlClickedCb url_clicked)
gtk_button_set_relief(GTK_BUTTON(close_button), GTK_RELIEF_NONE);
gtk_container_set_border_width(GTK_CONTAINER(close_button), 0);
//gtk_widget_set_size_request(close_button, 20, 20);
- g_signal_connect_swapped(G_OBJECT(close_button), "clicked", G_CALLBACK(g_object_unref), win);
+ g_signal_connect_swapped(G_OBJECT(close_button), "clicked", G_CALLBACK(gtk_widget_destroy), win);
#if !GTK_CHECK_VERSION(3, 0, 0)
rcstyle = gtk_rc_style_new();