[gnome-clocks] Use a recently added pygobject override
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Use a recently added pygobject override
- Date: Sun, 2 Sep 2012 11:41:11 +0000 (UTC)
commit 36206e95efe318d3d9904b5004b7d3c101b08cf9
Author: Paolo Borelli <pborelli gnome org>
Date: Sun Sep 2 12:39:57 2012 +0200
Use a recently added pygobject override
gnomeclocks/app.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomeclocks/app.py b/gnomeclocks/app.py
index 8a8515f..3189f60 100644
--- a/gnomeclocks/app.py
+++ b/gnomeclocks/app.py
@@ -414,9 +414,9 @@ class ClocksApplication(Gtk.Application):
menu.append(_("About Clocks"), "win.about")
quit = Gio.MenuItem()
- quit.set_attribute_value("label", GLib.Variant("s", _("Quit")))
- quit.set_attribute_value("action", GLib.Variant("s", "app.quit"))
- quit.set_attribute_value("accel", GLib.Variant("s", "<Primary>q"))
+ quit.set_attribute([("label", "s", _("Quit")),
+ ("action", "s", "app.quit"),
+ ("accel", "s", "<Primary>q")])
menu.append_item(quit)
self.set_app_menu(menu)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]