Commit e8c277c4 authored by Kai Willadsen's avatar Kai Willadsen

Fix some more deprecation warnings

parent 407df823
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment