diff options
Diffstat (limited to 'src/sugar3/activity/namingalert.py')
-rw-r--r-- | src/sugar3/activity/namingalert.py | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/sugar3/activity/namingalert.py b/src/sugar3/activity/namingalert.py index f1f5909..4dcc12b 100644 --- a/src/sugar3/activity/namingalert.py +++ b/src/sugar3/activity/namingalert.py @@ -179,11 +179,11 @@ class NamingAlert(gtk.Window): toolbar = NamingToolbar() toolbar.connect('keep-clicked', self.__keep_cb) - vbox.pack_start(toolbar, False) + vbox.pack_start(toolbar, False, False, 0) toolbar.show() body = self._create_body() - vbox.pack_start(body, expand=True, fill=True) + vbox.pack_start(body, True, True, 0) body.show() self._title.grab_focus() @@ -192,26 +192,24 @@ class NamingAlert(gtk.Window): body = gtk.VBox(spacing=style.DEFAULT_SPACING) body.set_border_width(style.DEFAULT_SPACING * 3) header = self._create_header() - body.pack_start(header, expand=False, padding=style.DEFAULT_PADDING) + body.pack_start(header, False, False, style.DEFAULT_PADDING) - body.pack_start(self._create_separator(style.DEFAULT_SPACING), - expand=False) + body.pack_start(self._create_separator(style.DEFAULT_SPACING), False, False, 0) - body.pack_start(self._create_label(_('Description:')), expand=False) + body.pack_start(self._create_label(_('Description:')), False, False, 0) description = self._activity.metadata.get('description', '') description_box, self._description = self._create_text_view(description) - body.pack_start(description_box, expand=True, fill=True) + body.pack_start(description_box, True, True, 0) - body.pack_start(self._create_separator(style.DEFAULT_PADDING), - expand=False) + body.pack_start(self._create_separator(style.DEFAULT_PADDING), False, False, 0) - body.pack_start(self._create_label(_('Tags:')), expand=False) + body.pack_start(self._create_label(_('Tags:')), False, False, 0) tags = self._activity.metadata.get('tags', '') tags_box, self._tags = self._create_text_view(tags) - body.pack_start(tags_box, expand=True, fill=True) + body.pack_start(tags_box, True, True, 0) body.show_all() return body |