diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-09-08 06:21:32 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-09-08 06:21:32 +0800 |
commit | 325fb5714b03624cc7f90d00a57d23b435b943c5 (patch) | |
tree | 78985aa01f0096eb8bd9fd0a4b533f42da918fae /importers/pine-importer.c | |
parent | 000be301290e1a96cbf4c01e4674d5a20c60e67b (diff) | |
download | gsoc2013-evolution-325fb5714b03624cc7f90d00a57d23b435b943c5.tar gsoc2013-evolution-325fb5714b03624cc7f90d00a57d23b435b943c5.tar.gz gsoc2013-evolution-325fb5714b03624cc7f90d00a57d23b435b943c5.tar.bz2 gsoc2013-evolution-325fb5714b03624cc7f90d00a57d23b435b943c5.tar.lz gsoc2013-evolution-325fb5714b03624cc7f90d00a57d23b435b943c5.tar.xz gsoc2013-evolution-325fb5714b03624cc7f90d00a57d23b435b943c5.tar.zst gsoc2013-evolution-325fb5714b03624cc7f90d00a57d23b435b943c5.zip |
New layout
svn path=/trunk/; revision=12691
Diffstat (limited to 'importers/pine-importer.c')
-rw-r--r-- | importers/pine-importer.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/importers/pine-importer.c b/importers/pine-importer.c index 9d9794046b..e0b870377f 100644 --- a/importers/pine-importer.c +++ b/importers/pine-importer.c @@ -450,6 +450,10 @@ pine_import_file (PineImporter *importer, return FALSE; } + if (folder == TRUE) { + return FALSE; + } + importer->listener = evolution_importer_listener_new (importer_cb, importer); objref = bonobo_object_corba_objref (BONOBO_OBJECT (importer->listener)); @@ -506,6 +510,7 @@ import_next (PineImporter *importer) if (importer->dir_list) { char *folder; + gboolean another; data = importer->dir_list->data; @@ -535,7 +540,7 @@ import_next (PineImporter *importer) g_free (data); importer->dir_list = importer->dir_list->next; } - + } /* Pine uses sent-mail and saved-mail whereas Evolution uses Sent and Drafts */ @@ -726,13 +731,10 @@ checkbox_toggle_cb (GtkToggleButton *tb, static BonoboControl * create_checkboxes_control (PineImporter *importer) { - GtkWidget *container, *vbox; + GtkWidget *hbox; BonoboControl *control; - container = gtk_frame_new (_("Import")); - vbox = gtk_vbox_new (FALSE, 2); - gtk_container_set_border_width (GTK_CONTAINER (container), 2); - gtk_container_add (GTK_CONTAINER (container), vbox); + hbox = gtk_hbox_new (FALSE, 2); importer->mail = gtk_check_button_new_with_label (_("Mail")); gtk_signal_connect (GTK_OBJECT (importer->mail), "toggled", @@ -744,16 +746,11 @@ create_checkboxes_control (PineImporter *importer) GTK_SIGNAL_FUNC (checkbox_toggle_cb), &importer->do_address); - gtk_box_pack_start (GTK_BOX (vbox), importer->mail, FALSE, FALSE, 0); - gtk_box_pack_start (GTK_BOX (vbox), importer->address, FALSE, FALSE, 0); - - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (importer->mail), - importer->do_mail); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (importer->address), - importer->do_address); + gtk_box_pack_start (GTK_BOX (hbox), importer->mail, FALSE, FALSE, 0); + gtk_box_pack_start (GTK_BOX (hbox), importer->address, FALSE, FALSE, 0); - gtk_widget_show_all (container); - control = bonobo_control_new (container); + gtk_widget_show_all (hbox); + control = bonobo_control_new (hbox); return control; } @@ -793,7 +790,7 @@ factory_fn (BonoboGenericFactory *_factory, importer = evolution_intelligent_importer_new (pine_can_import, pine_create_structure, - _("Pine mail"), + _("Pine"), _(message), pine); gtk_signal_connect (GTK_OBJECT (importer), "destroy", GTK_SIGNAL_FUNC (pine_destroy_cb), pine); |