From fdb774412ddd69ce24173f2c9ba2e84ca07601b0 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 7 Oct 2002 16:19:18 +0000 Subject: Change the selection mode to GTK_SELECTION_BROWSE so there is always a * e-shell-importer.c (choose_importer_from_list): Change the selection mode to GTK_SELECTION_BROWSE so there is always a selection. The code here doesn't handle a NULL selection. [#31690] * e-shell-importer.c (import_cb): Only delay half a second (instead of 5 seconds) when getting EVOLUTION_IMPORTER_NOT_READY or EVOLUTION_IMPORTER_BUSY. * importer/evolution-importer-listener.c (impl_GNOME_Evolution_ImporterListener_notifyResult): Removed debugging message. svn path=/trunk/; revision=18332 --- shell/e-shell-importer.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'shell/e-shell-importer.c') diff --git a/shell/e-shell-importer.c b/shell/e-shell-importer.c index 5fc9adaedb..af16efb532 100644 --- a/shell/e-shell-importer.c +++ b/shell/e-shell-importer.c @@ -237,24 +237,13 @@ import_cb (EvolutionImporterListener *listener, IN; if (icd->stop != TRUE) { if (result == EVOLUTION_IMPORTER_NOT_READY) { - /* Importer isn't ready yet. - Wait 5 seconds and try again. */ - - label = g_strdup_printf (_("Importing %s\nImporter not ready." - "\nWaiting 5 seconds to retry."), - icd->filename); - gtk_label_set_text (GTK_LABEL (icd->contents), label); - g_free (label); - while (gtk_events_pending ()) - gtk_main_iteration (); - - gtk_timeout_add (5000, importer_timeout_fn, data); + gtk_timeout_add (500, importer_timeout_fn, data); OUT; return; } if (result == EVOLUTION_IMPORTER_BUSY) { - gtk_timeout_add (5000, importer_timeout_fn, data); + gtk_timeout_add (500, importer_timeout_fn, data); OUT; return; } @@ -381,6 +370,7 @@ choose_importer_from_list (GList *importer_list) gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), clist, TRUE, TRUE, 0); + gtk_clist_set_selection_mode (GTK_CLIST (clist), GTK_SELECTION_BROWSE); gtk_widget_show (clist); switch (gnome_dialog_run (GNOME_DIALOG (dialog))) { -- cgit