aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorAntonio Xu <antonio.xu@sun.com>2003-07-22 16:15:09 +0800
committerAntonio Xu <anto@src.gnome.org>2003-07-22 16:15:09 +0800
commitb4e252d26ef852449dfad9852d59e01f004867fa (patch)
tree3d7c0c3b372cd328d7cfa4bb8c82843ab6b4e0f5 /shell
parentef517a5fba7b5f29a4e2aac95a114e401f249f6e (diff)
downloadgsoc2013-evolution-b4e252d26ef852449dfad9852d59e01f004867fa.tar.gz
gsoc2013-evolution-b4e252d26ef852449dfad9852d59e01f004867fa.tar.zst
gsoc2013-evolution-b4e252d26ef852449dfad9852d59e01f004867fa.zip
use g_signal_connect_after to connect "prepare" signal.
2003-07-22 Antonio Xu <antonio.xu@sun.com> * e-shell-importer.c: (show_import_wizard): use g_signal_connect_after to connect "prepare" signal. (prepare_intelligent_page): Display some error log and disable forward button rather than jump to finish page. [#46017] svn path=/trunk/; revision=21884
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog7
-rw-r--r--shell/e-shell-importer.c24
2 files changed, 26 insertions, 5 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 3cc3eed4ff..5eb40d8010 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,10 @@
+2003-07-22 Antonio Xu <antonio.xu@sun.com>
+
+ * e-shell-importer.c: (show_import_wizard): use
+ g_signal_connect_after to connect "prepare" signal.
+ (prepare_intelligent_page): Display some error log and disable
+ forward button rather than jump to finish page. [#46017]
+
2003-07-15 Antonio Xu <antonio.xu@sun.com>
* e-shell-startup-wizard.c (e_shell_startup_wizard_create): connect
diff --git a/shell/e-shell-importer.c b/shell/e-shell-importer.c
index 309fa313a9..4bdee8f1a6 100644
--- a/shell/e-shell-importer.c
+++ b/shell/e-shell-importer.c
@@ -146,6 +146,12 @@ static struct {
},
{ "intelligent_html",
N_("Please select the information that you would like to import:")
+ },
+ { "nodata_html",
+ N_("Evolution checked for settings to import from the following\n"
+ "applications: Pine, Netscape, Elm, iCalendar. No settings\n"
+ "that could be imported where found. If you would like to\n"
+ "try again, please click the \"Back\" button.\n")
}
};
#define num_info (sizeof (info) / sizeof (info[0]))
@@ -734,9 +740,12 @@ prepare_intelligent_page (GnomeDruidPage *page,
ImportDialogImporterPage *import;
GList *l, *importers;
GtkWidget *table;
+ GtkLabel *no_data;
int running = 0;
if (data->importerpage->prepared == TRUE) {
+ if (data->importerpage->running == 0)
+ gnome_druid_set_buttons_sensitive(druid, TRUE, FALSE, TRUE, FALSE);
return TRUE;
}
@@ -763,8 +772,10 @@ prepare_intelligent_page (GnomeDruidPage *page,
/* No importers, go directly to finish, do not pass go
Do not collect $200 */
import->running = 0;
- gnome_druid_set_page (druid, GNOME_DRUID_PAGE (data->finish))
- ;
+ no_data = create_help ("nodata_html");
+ gtk_box_pack_start (GTK_BOX (data->importerpage->vbox), no_data,
+ FALSE, TRUE, 0);
+ gnome_druid_set_buttons_sensitive(druid, TRUE, FALSE, TRUE, FALSE);
gtk_widget_destroy (dialog);
return TRUE;
}
@@ -887,7 +898,10 @@ prepare_intelligent_page (GnomeDruidPage *page,
gtk_widget_show_all (table);
if (running == 0) {
- gnome_druid_set_page (druid, GNOME_DRUID_PAGE (data->finish));
+ no_data = create_help ("nodata_html");
+ gtk_box_pack_start (GTK_BOX (data->importerpage->vbox), no_data,
+ FALSE, TRUE, 0);
+ gnome_druid_set_buttons_sensitive(druid, TRUE, FALSE, TRUE, FALSE);
gtk_widget_destroy (dialog);
return TRUE;
}
@@ -1194,7 +1208,7 @@ show_import_wizard (BonoboUIComponent *component,
G_CALLBACK (next_intelligent_page), data);
g_signal_connect (data->intelligent, "back",
G_CALLBACK (back_intelligent_page), data);
- g_signal_connect (data->intelligent, "prepare",
+ g_signal_connect_after (data->intelligent, "prepare",
G_CALLBACK (prepare_intelligent_page), data);
data->importerpage = importer_importer_page_new (data);
@@ -1206,7 +1220,7 @@ show_import_wizard (BonoboUIComponent *component,
data->filedialog = glade_xml_get_widget (data->wizard, "page2-file");
- g_signal_connect (data->filedialog, "prepare",
+ g_signal_connect_after (data->filedialog, "prepare",
G_CALLBACK (prepare_file_page), data);
g_signal_connect (data->filedialog, "next",
G_CALLBACK (next_file_page), data);