From 33b867e6ccedfbc0fe36f416f49882d314d9e486 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Fri, 26 Oct 2001 18:29:39 +0000 Subject: Remove bad dialog ref-counting crap. 2001-10-26 Jon Trowbridge * gui/contact-editor/e-contact-save-as.c (file_exists): Remove bad dialog ref-counting crap. * gui/contact-editor/e-contact-editor.c (save_card): Ref our EContactEditor, since we are holding a pointer to it in EditorCloseStruct. (card_modified_cb): Unref our EContactEditor when we free our EditorCloseStruct. (card_added_cb): Unref our EContactEditor when we free our EditorCloseStruct. svn path=/trunk/; revision=14157 --- addressbook/gui/contact-editor/e-contact-save-as.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'addressbook/gui/contact-editor/e-contact-save-as.c') diff --git a/addressbook/gui/contact-editor/e-contact-save-as.c b/addressbook/gui/contact-editor/e-contact-save-as.c index ec174615e9..2573eab1b3 100644 --- a/addressbook/gui/contact-editor/e-contact-save-as.c +++ b/addressbook/gui/contact-editor/e-contact-save-as.c @@ -196,7 +196,6 @@ file_exists(GtkFileSelection *filesel, const char *filename) gui = glade_xml_new (EVOLUTION_GLADEDIR "/file-exists.glade", NULL); dialog = GNOME_DIALOG(glade_xml_get_widget(gui, "dialog-exists")); - gtk_widget_ref(GTK_WIDGET(dialog)); label = glade_xml_get_widget (gui, "label-exists"); if (GTK_IS_LABEL (label)) { @@ -210,8 +209,6 @@ file_exists(GtkFileSelection *filesel, const char *filename) gtk_widget_show (GTK_WIDGET (dialog)); result = gnome_dialog_run_and_close(dialog); - gtk_widget_unref(GTK_WIDGET(dialog)); - gtk_widget_destroy(GTK_WIDGET(dialog)); g_free(gui); return result; -- cgit v1.2.3