From 4c813f2c7f3cbba949b13fa8aef4775f34c0aaf4 Mon Sep 17 00:00:00 2001 From: Leigh Scott Date: Sat, 3 Feb 2018 10:26:28 +0000 Subject: [PATCH] Fix Py*DeprecationWarning (#202) --- plugins/textsize/textsize/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/textsize/textsize/__init__.py b/plugins/textsize/textsize/__init__.py index f2c46c6..0ee4041 100644 --- a/plugins/textsize/textsize/__init__.py +++ b/plugins/textsize/textsize/__init__.py @@ -34,7 +34,7 @@ MENU_PATH = "/MenuBar/ViewMenu/ViewOps_1" class TextSizePlugin(GObject.Object, Xed.WindowActivatable): __gtype_name__ = "TextSizePlugin" - window = GObject.property(type=Xed.Window) + window = GObject.Property(type=Xed.Window) def __init__(self): GObject.Object.__init__(self) @@ -119,7 +119,7 @@ class TextSizePlugin(GObject.Object, Xed.WindowActivatable): manager = self.window.get_ui_manager() # Create a new action group - self._action_group = Gtk.ActionGroup("XedTextSizePluginActions") + self._action_group = Gtk.ActionGroup(name="XedTextSizePluginActions") self._action_group.add_actions([("LargerTextAction", None, _("_Larger Text"), "equal", None, self.on_larger_text_activate),