[meld] dirdiff, misc: Update for kwarg deprecations
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] dirdiff, misc: Update for kwarg deprecations
- Date: Sat, 10 Jan 2015 21:01:35 +0000 (UTC)
commit 163ea2f28cb179b47fa18dd38768e8048e0fa75f
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Jan 11 06:57:01 2015 +1000
dirdiff, misc: Update for kwarg deprecations
meld/dirdiff.py | 2 +-
meld/misc.py | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index e68f7f3..f335b15 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -548,7 +548,7 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
if f.filter is None:
disabled_actions.append(name)
- self.filter_actiongroup = Gtk.ActionGroup("DirdiffFilterActions")
+ self.filter_actiongroup = Gtk.ActionGroup(name="DirdiffFilterActions")
self.filter_actiongroup.add_toggle_actions(actions)
for name in disabled_actions:
self.filter_actiongroup.get_action(name).set_sensitive(False)
diff --git a/meld/misc.py b/meld/misc.py
index 03a0a9f..02fd9d1 100644
--- a/meld/misc.py
+++ b/meld/misc.py
@@ -131,7 +131,8 @@ def position_menu_under_widget(menu, widget):
def make_tool_button_widget(label):
"""Make a GtkToolButton label-widget suggestive of a menu dropdown"""
- arrow = Gtk.Arrow(Gtk.ArrowType.DOWN, Gtk.ShadowType.NONE)
+ arrow = Gtk.Arrow(
+ arrow_type=Gtk.ArrowType.DOWN, shadow_type=Gtk.ShadowType.NONE)
label = Gtk.Label(label=label)
hbox = Gtk.HBox(spacing=3)
hbox.pack_end(arrow, True, True, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]