[evolution-patches] Request review my patch for bug #46017
- From: Antonio Xu <antonio xu sun com>
- To: evolution-patches ximian com
- Cc: Ettore Perazzoli <ettore ximian com>
- Subject: [evolution-patches] Request review my patch for bug #46017
- Date: Thu, 10 Jul 2003 00:51:59 +0800
Hello,
I have maken a patch for bug #46017, my patch can solve the
problem of this bug. My patch also can solve the Incorrect behaviour in
file pape of evolution importer.
Bug Summary: Incorrect behaviour in import wizard
Bug Link:http://bugzilla.ximian.com/show_bug.cgi?id=46017
Please review my patch.
Best Regard
Antonio Xu
Index: shell/e-shell-importer.c
===================================================================
RCS file: /cvs/gnome/evolution/shell/e-shell-importer.c,v
retrieving revision 1.56
diff -u -r1.56 e-shell-importer.c
--- shell/e-shell-importer.c 29 Apr 2003 02:40:56 -0000 1.56
+++ shell/e-shell-importer.c 9 Jul 2003 15:49:06 -0000
@@ -146,6 +146,9 @@
},
{ "intelligent_html",
N_("Please select the information that you would like to import:")
+ },
+ { "nodata_html",
+ N_("No data can be imported")
}
};
#define num_info (sizeof (info) / sizeof (info[0]))
@@ -734,6 +737,7 @@
ImportDialogImporterPage *import;
GList *l, *importers;
GtkWidget *table;
+ GtkLabel *no_data;
int running = 0;
if (data->importerpage->prepared == TRUE) {
@@ -763,8 +767,11 @@
/* 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(GNOME_DRUID (data->druid),
+ TRUE, FALSE, TRUE, FALSE);
gtk_widget_destroy (dialog);
return TRUE;
}
@@ -887,7 +894,11 @@
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(GNOME_DRUID (data->druid),
+ TRUE, FALSE, TRUE, FALSE);
gtk_widget_destroy (dialog);
return TRUE;
}
@@ -1194,7 +1205,7 @@
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 +1217,7 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]