From 983dfa055cd7519cfc3d97bd738789dd9a58fe58 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Fri, 17 Oct 2008 12:47:04 +0000 Subject: Added import_dialog_free and actually destroy the importer when finished importing or when cancelled. (Jonny Lamb) Signed-off-by: Jonny Lamb svn path=/trunk/; revision=1617 --- src/empathy-import-dialog.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c index 45ee0b8a3..8d3582eff 100644 --- a/src/empathy-import-dialog.c +++ b/src/empathy-import-dialog.c @@ -443,6 +443,13 @@ import_dialog_tree_model_foreach (GtkTreeModel *model, return FALSE; } +static void +import_dialog_free (EmpathyImportDialog *dialog) +{ + gtk_widget_destroy (dialog->window); + g_slice_free (EmpathyImportDialog, dialog); +} + static void import_dialog_button_ok_clicked_cb (GtkButton *button, EmpathyImportDialog *dialog) @@ -464,14 +471,14 @@ import_dialog_button_ok_clicked_cb (GtkButton *button, gtk_dialog_run (GTK_DIALOG (message)); gtk_widget_destroy (message); - gtk_widget_hide (GTK_WIDGET (dialog->window)); + import_dialog_free (dialog); } static void import_dialog_button_cancel_clicked_cb (GtkButton *button, EmpathyImportDialog *dialog) { - gtk_widget_hide (GTK_WIDGET (dialog->window)); + import_dialog_free (dialog); } static void -- cgit v1.2.3