diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-01-30 09:36:35 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-01-30 09:36:35 +0800 |
commit | a05f6a5cb7d0816792080dfeae6c94858c09cf35 (patch) | |
tree | c52b02d24c4521c9a686ff9a44fe42eff4183acd /shell/importer/importer.c | |
parent | 54b319e9d1e4fbb7e27d8d7984ef7ecef7caf7b4 (diff) | |
download | gsoc2013-evolution-a05f6a5cb7d0816792080dfeae6c94858c09cf35.tar gsoc2013-evolution-a05f6a5cb7d0816792080dfeae6c94858c09cf35.tar.gz gsoc2013-evolution-a05f6a5cb7d0816792080dfeae6c94858c09cf35.tar.bz2 gsoc2013-evolution-a05f6a5cb7d0816792080dfeae6c94858c09cf35.tar.lz gsoc2013-evolution-a05f6a5cb7d0816792080dfeae6c94858c09cf35.tar.xz gsoc2013-evolution-a05f6a5cb7d0816792080dfeae6c94858c09cf35.tar.zst gsoc2013-evolution-a05f6a5cb7d0816792080dfeae6c94858c09cf35.zip |
Remove the FIXME in the glade dialog, and put a nasty hack to change the
label of the button to "Import"
svn path=/trunk/; revision=7902
Diffstat (limited to 'shell/importer/importer.c')
-rw-r--r-- | shell/importer/importer.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/shell/importer/importer.c b/shell/importer/importer.c index 21e110b361..a59ef54a4f 100644 --- a/shell/importer/importer.c +++ b/shell/importer/importer.c @@ -341,6 +341,7 @@ start_import (const char *filename, bonobo_object_unref (BONOBO_OBJECT (icd->client)); gtk_object_unref (GTK_OBJECT (icd->dialog)); g_free (icd); + return; } icd->filename = g_strdup (filename); @@ -544,6 +545,28 @@ prepare_file_page (GnomeDruidPage *page, return FALSE; } +/* Hack to change the Finish button */ +static void +druid_finish_button_change (GnomeDruid *druid) +{ + GtkWidget *button = druid->finish; + GtkWidget *hbox = GTK_BIN (button)->child, *hbox2; + GtkBoxChild *child; + GtkWidget *label; + + /* Get the second item from the children list */ + hbox2 = ((GtkBoxChild *)GTK_BOX (hbox)->children->data)->widget; + + g_return_if_fail (GTK_IS_BOX (hbox2)); + child = (GtkBoxChild *)g_list_nth_data (GTK_BOX (hbox2)->children, 0); + label = child->widget; + + /* Safety check :) */ + g_return_if_fail (GTK_IS_LABEL (label)); + + gtk_label_set_text (GTK_LABEL (label), _("Import")); +} + void show_import_wizard (void) { @@ -560,7 +583,8 @@ show_import_wizard (void) data->druid = glade_xml_get_widget (data->wizard, "druid1"); gtk_signal_connect (GTK_OBJECT (data->druid), "cancel", GTK_SIGNAL_FUNC (import_druid_cancel), data); - + + druid_finish_button_change (GNOME_DRUID (data->druid)); start = GNOME_DRUID_PAGE_START (glade_xml_get_widget (data->wizard, "page1")); data->filedialog = glade_xml_get_widget (data->wizard, "page2"); gtk_signal_connect (GTK_OBJECT (data->filedialog), "prepare", |