diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-10-08 00:19:18 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-10-08 00:19:18 +0800 |
commit | fdb774412ddd69ce24173f2c9ba2e84ca07601b0 (patch) | |
tree | 681ab46b10a0ad74752257c8f8785428c783c176 /shell/e-shell-importer.c | |
parent | bda9596690687aab710bcb9e2ff89abd3b098618 (diff) | |
download | gsoc2013-evolution-fdb774412ddd69ce24173f2c9ba2e84ca07601b0.tar.gz gsoc2013-evolution-fdb774412ddd69ce24173f2c9ba2e84ca07601b0.tar.zst gsoc2013-evolution-fdb774412ddd69ce24173f2c9ba2e84ca07601b0.zip |
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
Diffstat (limited to 'shell/e-shell-importer.c')
-rw-r--r-- | shell/e-shell-importer.c | 16 |
1 files changed, 3 insertions, 13 deletions
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))) { |