Skip to content

Commit 4c813f2

Browse files
leigh123linuxclefebvre
authored andcommitted
Fix Py*DeprecationWarning (#202)
1 parent 50b0155 commit 4c813f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/textsize/textsize/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
class TextSizePlugin(GObject.Object, Xed.WindowActivatable):
3535
__gtype_name__ = "TextSizePlugin"
3636

37-
window = GObject.property(type=Xed.Window)
37+
window = GObject.Property(type=Xed.Window)
3838

3939
def __init__(self):
4040
GObject.Object.__init__(self)
@@ -119,7 +119,7 @@ def _insert_menu(self):
119119
manager = self.window.get_ui_manager()
120120

121121
# Create a new action group
122-
self._action_group = Gtk.ActionGroup("XedTextSizePluginActions")
122+
self._action_group = Gtk.ActionGroup(name="XedTextSizePluginActions")
123123
self._action_group.add_actions([("LargerTextAction", None, _("_Larger Text"),
124124
"<Ctrl>equal", None,
125125
self.on_larger_text_activate),

0 commit comments

Comments
 (0)