Fix Py*DeprecationWarning (#202)
This commit is contained in:
parent
50b01551ac
commit
4c813f2c7f
|
@ -34,7 +34,7 @@ MENU_PATH = "/MenuBar/ViewMenu/ViewOps_1"
|
||||||
class TextSizePlugin(GObject.Object, Xed.WindowActivatable):
|
class TextSizePlugin(GObject.Object, Xed.WindowActivatable):
|
||||||
__gtype_name__ = "TextSizePlugin"
|
__gtype_name__ = "TextSizePlugin"
|
||||||
|
|
||||||
window = GObject.property(type=Xed.Window)
|
window = GObject.Property(type=Xed.Window)
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
GObject.Object.__init__(self)
|
GObject.Object.__init__(self)
|
||||||
|
@ -119,7 +119,7 @@ class TextSizePlugin(GObject.Object, Xed.WindowActivatable):
|
||||||
manager = self.window.get_ui_manager()
|
manager = self.window.get_ui_manager()
|
||||||
|
|
||||||
# Create a new action group
|
# 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"),
|
self._action_group.add_actions([("LargerTextAction", None, _("_Larger Text"),
|
||||||
"<Ctrl>equal", None,
|
"<Ctrl>equal", None,
|
||||||
self.on_larger_text_activate),
|
self.on_larger_text_activate),
|
||||||
|
|
Loading…
Reference in New Issue