[meld] Fix some more deprecation warnings
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Fix some more deprecation warnings
- Date: Sat, 1 Mar 2014 01:41:11 +0000 (UTC)
commit e8c277c426292c4479537ba8a42046392b47ff8c
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Mar 1 11:35:08 2014 +1000
Fix some more deprecation warnings
meld/filediff.py | 4 ++--
meld/ui/msgarea.py | 4 ++--
meld/ui/statusbar.py | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 8f54ded..86675da 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -178,7 +178,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
# This SizeGroup isn't actually necessary for FileDiff; it's for
# handling non-homogenous selectors in FileComp. It's also fragile.
- column_sizes = Gtk.SizeGroup(Gtk.SizeGroupMode.HORIZONTAL)
+ column_sizes = Gtk.SizeGroup(mode=Gtk.SizeGroupMode.HORIZONTAL)
column_sizes.set_ignore_hidden(True)
for widget in self.selector_hbox:
column_sizes.add_widget(widget)
@@ -305,7 +305,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
)
self.ui_file = gnomeglade.ui_file("filediff-ui.xml")
- self.actiongroup = Gtk.ActionGroup('FilediffPopupActions')
+ self.actiongroup = Gtk.ActionGroup(name="FilediffPopupActions")
self.actiongroup.set_translation_domain("meld")
self.actiongroup.add_actions(actions)
self.actiongroup.add_toggle_actions(toggle_actions)
diff --git a/meld/ui/msgarea.py b/meld/ui/msgarea.py
index d050db4..dd44ed8 100644
--- a/meld/ui/msgarea.py
+++ b/meld/ui/msgarea.py
@@ -25,7 +25,7 @@ from meld.ui.wraplabel import WrapLabel
def layout_text_and_icon(stockid, primary_text, secondary_text=None):
- hbox_content = Gtk.HBox(False, 8)
+ hbox_content = Gtk.HBox(homogeneous=False, spacing=8)
hbox_content.show()
image = Gtk.Image()
@@ -34,7 +34,7 @@ def layout_text_and_icon(stockid, primary_text, secondary_text=None):
hbox_content.pack_start(image, False, False, 0)
image.set_alignment(0.5, 0.5)
- vbox = Gtk.VBox(False, 6)
+ vbox = Gtk.VBox(homogeneous=False, spacing=6)
vbox.show()
hbox_content.pack_start(vbox, True, True, 0)
diff --git a/meld/ui/statusbar.py b/meld/ui/statusbar.py
index 160410f..c4e40e8 100644
--- a/meld/ui/statusbar.py
+++ b/meld/ui/statusbar.py
@@ -42,7 +42,7 @@ class MeldStatusBar(Gtk.Statusbar):
hbox.pack_start(label, True, True, 0)
alignment = Gtk.Alignment.new(xalign=1.0, yalign=0.5, xscale=1.0, yscale=1.0)
- self.info_box = Gtk.HBox(False, 12)
+ self.info_box = Gtk.HBox(homogeneous=False, spacing=12)
self.info_box.show()
alignment.add(self.info_box)
self.pack_start(alignment, True, True, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]