diff options
author | Milan Crha <mcrha@redhat.com> | 2008-02-06 18:52:10 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-02-06 18:52:10 +0800 |
commit | b4f17573a3c1f46d10d3d19d2a3058d5a7d34a3b (patch) | |
tree | 54842aea2d7905dcd075f8d76dd9f80fbdc7e5af /plugins/import-ics-attachments/icsimporter.c | |
parent | f3f270173052077c6fbb74b51b2008b4e2e17299 (diff) | |
download | gsoc2013-evolution-b4f17573a3c1f46d10d3d19d2a3058d5a7d34a3b.tar gsoc2013-evolution-b4f17573a3c1f46d10d3d19d2a3058d5a7d34a3b.tar.gz gsoc2013-evolution-b4f17573a3c1f46d10d3d19d2a3058d5a7d34a3b.tar.bz2 gsoc2013-evolution-b4f17573a3c1f46d10d3d19d2a3058d5a7d34a3b.tar.lz gsoc2013-evolution-b4f17573a3c1f46d10d3d19d2a3058d5a7d34a3b.tar.xz gsoc2013-evolution-b4f17573a3c1f46d10d3d19d2a3058d5a7d34a3b.tar.zst gsoc2013-evolution-b4f17573a3c1f46d10d3d19d2a3058d5a7d34a3b.zip |
** Fix for bug #514622
2008-02-06 Milan Crha <mcrha@redhat.com>
** Fix for bug #514622
* icsimporter.c: (dialog_close_cb): Drop this function.
* icsimporter.c: (init_widgets), (dialog_response_cb),
(ical_import_done): Do not call "close" on already closed dialog.
svn path=/trunk/; revision=34965
Diffstat (limited to 'plugins/import-ics-attachments/icsimporter.c')
-rw-r--r-- | plugins/import-ics-attachments/icsimporter.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/import-ics-attachments/icsimporter.c b/plugins/import-ics-attachments/icsimporter.c index dbcb597a20..093d95e3d0 100644 --- a/plugins/import-ics-attachments/icsimporter.c +++ b/plugins/import-ics-attachments/icsimporter.c @@ -64,7 +64,6 @@ static void prepare_tasks (icalcomponent *icalcomp, GList *vtodos); static void import_items(ICalImporterData *icidata); static gboolean update_objects (ECal *client, icalcomponent *icalcomp); static void dialog_response_cb (GtkDialog *dialog, gint response_id, ICalImporterData *icidata); -static void dialog_close_cb (GtkDialog *dialog, ICalImporterData *icidata); static void ical_import_done(ICalImporterData *icidata); static void init_widgets (char *path); static icalcomponent_kind get_menu_type (void *data); @@ -212,10 +211,6 @@ init_widgets(char *path) "response", G_CALLBACK (dialog_response_cb), icidata); - g_signal_connect (dialog, - "close", - G_CALLBACK (dialog_close_cb), - icidata); vbox = GTK_DIALOG(dialog)->vbox; hbox = gtk_hbox_new (FALSE, FALSE); @@ -275,6 +270,7 @@ init_widgets(char *path) gtk_window_set_default_size (GTK_WINDOW (dialog), 210,340); gtk_widget_show_all (dialog); gtk_dialog_run (GTK_DIALOG (dialog)); + gtk_widget_destroy (dialog); } static void @@ -287,17 +283,10 @@ dialog_response_cb (GtkDialog *dialog, gint response_id, ICalImporterData *icida case GTK_RESPONSE_CANCEL : case GTK_RESPONSE_DELETE_EVENT : - gtk_signal_emit_by_name ((GtkObject *)dialog, "close"); break; } } -static void -dialog_close_cb (GtkDialog *dialog, ICalImporterData *icidata) -{ - gtk_widget_destroy ((GtkWidget *)dialog); -} - /* This removes all components except VEVENTs and VTIMEZONEs from the toplevel */ static void prepare_events (icalcomponent *icalcomp, GList **vtodos) @@ -421,7 +410,6 @@ ical_import_done(ICalImporterData *icidata) { g_object_unref (icidata->client); icalcomponent_free (icidata->icalcomp); - gtk_signal_emit_by_name (GTK_OBJECT (icidata->window), "close"); g_free (icidata); } |