diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2014-04-16 04:00:20 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-05-14 21:21:41 (GMT) |
commit | 682a6cc29a5658206ba01380ba8186e3af224d7a (patch) | |
tree | ddc137b1f7f4f6bf0ccd3ed8dd80ed74fa7909ca | |
parent | 6eb11e8afa983c0ccdb2d499c6ab3a328abe420a (diff) |
port to gtk3: pack fixes dialog.py
-rw-r--r-- | dialogs.py | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -51,7 +51,7 @@ class _DialogWindow(Gtk.Window): toolbar = _DialogToolbar(icon_name, title) toolbar.connect('stop-clicked', self._stop_clicked_cb) - vbox.pack_start(toolbar, False) + vbox.pack_start(toolbar, False, False, 0) self.content_vbox = Gtk.VBox() self.content_vbox.set_border_width(style.DEFAULT_SPACING) @@ -126,14 +126,14 @@ class ResourceDialog(_DialogWindow): scrollwin.add_with_viewport(vbox) image = Gtk.Image() - vbox.pack_start(image, False, padding=5) + vbox.pack_start(image, False, False, padding=5) image.set_from_file(resource['file_image']) editor = WebKit.WebView() editor.set_editable(False) height = int(Gdk.Screen.height() / 3) editor.set_size_request(-1, height) - vbox.pack_start(editor, False, padding=5) + vbox.pack_start(editor, False, False, padding=5) if resource['file_text'] != '': if os.path.exists(resource['file_text']): @@ -168,7 +168,7 @@ class QuestionDialog(_DialogWindow): self.image_result = Gtk.Image() self.notebook.append_page(self.image_result, None) - self.content_vbox.pack_start(self.notebook, True, True) + self.content_vbox.pack_start(self.notebook, True, True, 0) self.content_vbox.set_border_width(0) question_type = question['type'] @@ -180,12 +180,12 @@ class QuestionDialog(_DialogWindow): for reply in replies: hbox_row = Gtk.HBox() reply_label = Gtk.Label(label=reply['text']) - hbox_row.pack_start(reply_label, True, padding=5) - vbox.pack_start(hbox_row, False, padding=5) + hbox_row.pack_start(reply_label, True, True, padding=5) + vbox.pack_start(hbox_row, False, False, padding=5) reply_button = Gtk.Button(_('Select')) reply_button.connect('clicked', self.__button_reply_click_cb, reply['valid']) - hbox_row.pack_start(reply_button, False, padding=5) + hbox_row.pack_start(reply_button, False, False, padding=5) hbox_row.show_all() if question_type == model.QUESTION_TYPE_GRAPHIC: @@ -194,7 +194,7 @@ class QuestionDialog(_DialogWindow): self.draw_reply_area = questions.DrawReplyArea(image_path, reply_file_name=reply_image_path) - vbox.pack_start(self.draw_reply_area, False, padding=5) + vbox.pack_start(self.draw_reply_area, False, False, padding=5) self.draw_reply_area.connect('reply-selected', self.__draw_reply_click_cb) |