Merge branch 'crash-659118'
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 20 Sep 2011 22:32:59 +0000 (08:32 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 20 Sep 2011 22:33:21 +0000 (08:33 +1000)
Freeze exception signed off by Andre Klapper <ak-47@gmx.net> and
Matthias Clasen <matthias.clasen@gmail.com>

src/empathy-main-window.c

index ad771b0..f372252 100644 (file)
@@ -2122,6 +2122,10 @@ empathy_main_window_init (EmpathyMainWindow *window)
        gtk_window_set_role (GTK_WINDOW (window), "contact_list");
        gtk_window_set_default_size (GTK_WINDOW (window), 225, 325);
 
+       /* don't finalize the widget on delete-event, just hide it */
+       g_signal_connect (window, "delete-event",
+               G_CALLBACK (gtk_widget_hide_on_delete), NULL);
+
        /* Set up interface */
        filename = empathy_file_lookup ("empathy-main-window.ui", "src");
        gui = empathy_builder_get_file (filename,