GTK3: fully working Pedigreeview, bugs #5757 #4310 with display present

svn: r20176
This commit is contained in:
Benny Malengier
2012-08-04 09:11:19 +00:00
parent e16c439e46
commit e351f60398
2 changed files with 63 additions and 268 deletions
+2 -3
View File
@@ -375,7 +375,7 @@ class ConfigureDialog(ManagedWindow):
store = Gtk.ListStore(int, str)
for item in opts:
store.append(item)
combo = Gtk.ComboBox(store)
combo = Gtk.ComboBox(model=store)
cell = Gtk.CellRendererText()
combo.pack_start(cell, True)
combo.add_attribute(cell, 'text', 1)
@@ -398,8 +398,7 @@ class ConfigureDialog(ManagedWindow):
callback = self.update_slider
lwidget = BasicLabel("%s: " % label)
adj = Gtk.Adjustment(config.get(constant), range[0], range[1], 1, 0, 0)
slider = Gtk.HScale(adj)
slider.set_update_policy(Gtk.UPDATE_DISCONTINUOUS)
slider = Gtk.HScale(adjustment=adj)
slider.set_digits(0)
slider.set_value_pos(Gtk.PositionType.BOTTOM)
slider.connect('value-changed', callback, constant)