Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Kaufmann <humitos@gmail.com>2012-09-17 16:30:23 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-09-17 17:11:13 (GMT)
commit8c661997e6c54139cf98dc7149749388c91d757f (patch)
tree70968ff39b0a847461f636a562df2e7003d339c1
parent5502400ffc7c372d2697a7dd0b3432ea0f262b1f (diff)
Journal ModalAlert: port to Gtk3
- window.window -> window.get_window() - Gtk.Alignment: pass all required arguments - pack_start: we have to pass all arguments now with the dynamic bindings Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--src/jarabe/journal/modalalert.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/jarabe/journal/modalalert.py b/src/jarabe/journal/modalalert.py
index 36f076e..db7a81f 100644
--- a/src/jarabe/journal/modalalert.py
+++ b/src/jarabe/journal/modalalert.py
@@ -56,25 +56,27 @@ class ModalAlert(Gtk.Window):
icon = Icon(icon_name='activity-journal',
pixel_size=style.XLARGE_ICON_SIZE,
xo_color=color)
- self._vbox.pack_start(icon, False)
+ self._vbox.pack_start(icon, expand=False, fill=False, padding=0)
icon.show()
self._title = Gtk.Label()
self._title.modify_fg(Gtk.StateType.NORMAL,
style.COLOR_WHITE.get_gdk_color())
self._title.set_markup('<b>%s</b>' % _('Your Journal is full'))
- self._vbox.pack_start(self._title, False)
+ self._vbox.pack_start(self._title, expand=False, fill=False, padding=0)
self._title.show()
self._message = Gtk.Label(label=_('Please delete some old Journal'
' entries to make space for new ones.'))
self._message.modify_fg(Gtk.StateType.NORMAL,
style.COLOR_WHITE.get_gdk_color())
- self._vbox.pack_start(self._message, False)
+ self._vbox.pack_start(self._message, expand=False,
+ fill=False, padding=0)
self._message.show()
- alignment = Gtk.Alignment.new(xalign=0.5, yalign=0.5)
- self._vbox.pack_start(alignment, False, True, 0)
+ alignment = Gtk.Alignment.new(xalign=0.5, yalign=0.5,
+ xscale=0.0, yscale=0.0)
+ self._vbox.pack_start(alignment, expand=False, fill=True, padding=0)
alignment.show()
self._show_journal = Gtk.Button()
@@ -90,7 +92,7 @@ class ModalAlert(Gtk.Window):
def __realize_cb(self, widget):
self.set_type_hint(Gdk.WindowTypeHint.DIALOG)
- self.window.set_accept_focus(True)
+ self.get_window().set_accept_focus(True)
def __show_journal_cb(self, button):
"""The opener will listen on the destroy signal"""