Start convertion to introspection. Flat models work, as does relationship view
svn: r19858
This commit is contained in:
@@ -188,23 +188,23 @@ class CSVWriterOptionBox(WriterOptionBox):
|
||||
self.translate_headers_check = None
|
||||
|
||||
def get_option_box(self):
|
||||
import gtk
|
||||
from gi.repository import Gtk
|
||||
option_box = WriterOptionBox.get_option_box(self)
|
||||
|
||||
self.include_individuals_check = gtk.CheckButton(_("Include people"))
|
||||
self.include_marriages_check = gtk.CheckButton(_("Include marriages"))
|
||||
self.include_children_check = gtk.CheckButton(_("Include children"))
|
||||
self.translate_headers_check = gtk.CheckButton(_("Translate headers"))
|
||||
self.include_individuals_check = Gtk.CheckButton(_("Include people"))
|
||||
self.include_marriages_check = Gtk.CheckButton(_("Include marriages"))
|
||||
self.include_children_check = Gtk.CheckButton(_("Include children"))
|
||||
self.translate_headers_check = Gtk.CheckButton(_("Translate headers"))
|
||||
|
||||
self.include_individuals_check.set_active(1)
|
||||
self.include_marriages_check.set_active(1)
|
||||
self.include_children_check.set_active(1)
|
||||
self.translate_headers_check.set_active(1)
|
||||
|
||||
option_box.pack_start(self.include_individuals_check, False)
|
||||
option_box.pack_start(self.include_marriages_check, False)
|
||||
option_box.pack_start(self.include_children_check, False)
|
||||
option_box.pack_start(self.translate_headers_check, False)
|
||||
option_box.pack_start(self.include_individuals_check, False, True, 0)
|
||||
option_box.pack_start(self.include_marriages_check, False, True, 0)
|
||||
option_box.pack_start(self.include_children_check, False, True, 0)
|
||||
option_box.pack_start(self.translate_headers_check, False, True, 0)
|
||||
|
||||
return option_box
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ log = logging.getLogger(".WritePkg")
|
||||
# GNOME/GTK modules
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
import gtk
|
||||
from gi.repository import Gtk
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -161,14 +161,14 @@ class PackageWriter(object):
|
||||
# if os.path.isfile(name):
|
||||
# archive.add(name)
|
||||
|
||||
# fs_top = gtk.FileChooserDialog("%s - GRAMPS" % _("Select file"),
|
||||
# buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
|
||||
# gtk.STOCK_OK, gtk.RESPONSE_OK)
|
||||
# fs_top = Gtk.FileChooserDialog("%s - GRAMPS" % _("Select file"),
|
||||
# buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
|
||||
# Gtk.STOCK_OK, Gtk.ResponseType.OK)
|
||||
# )
|
||||
# response = fs_top.run()
|
||||
# if response == gtk.RESPONSE_OK:
|
||||
# if response == Gtk.ResponseType.OK:
|
||||
# fs_ok_clicked(fs_top)
|
||||
# elif response == gtk.RESPONSE_CANCEL:
|
||||
# elif response == Gtk.ResponseType.CANCEL:
|
||||
# fs_close_window(fs_top)
|
||||
|
||||
# fs_top.destroy()
|
||||
|
||||
Reference in New Issue
Block a user