From 88804d9793f061a17bf1c76b07a16d65a2fefc67 Mon Sep 17 00:00:00 2001 From: Max Usachev Date: Tue, 15 Jun 2010 13:41:28 +0300 Subject: [PATCH] added config initialization after Import --- controller.py | 2 ++ ui/hildon_ui.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/controller.py b/controller.py index a928930..91a7a6c 100644 --- a/controller.py +++ b/controller.py @@ -89,6 +89,8 @@ class MeabookController: self.view.create_progress_dialog(_('Importing...')) #FIXME: implement update_fraction parser.parse() + self.config.set_fields(self.model.get_fields()) + self.config.set_order(self.model.get_fields()) except: self.view.create_information_dialog(_('Import error'), \ _('Unsupported file format!')) diff --git a/ui/hildon_ui.py b/ui/hildon_ui.py index d33faad..270c959 100644 --- a/ui/hildon_ui.py +++ b/ui/hildon_ui.py @@ -316,7 +316,7 @@ class ConfigurationDialog: button = create_button(' '.join([_('Position'), str(index)]), \ _(field)) button.connect('clicked', show_fields_chooser) - vbox.pack_start(button) + vbox.pack_start(button, expand=False) self.pannable_area.add_with_viewport(vbox) self.pannable_area.show_all() -- 1.7.9.5