From a62c2a08220b0e32357c6bf9a31cd7c845c93793 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 28 Oct 2002 13:36:39 +0000 Subject: [PATCH] GTK translation updates svn: r1155 --- gramps2/example/gramps/data.gramps | Bin 3565 -> 3711 bytes gramps2/src/DisplayTrace.py | 2 +- gramps2/src/EditSource.py | 2 +- gramps2/src/FamilyView.py | 24 + gramps2/src/GenericFilter.py | 20 +- gramps2/src/GrampsCfg.py | 7 - gramps2/src/GraphLayout.py | 9 +- gramps2/src/ImageSelect.py | 12 +- gramps2/src/Report.py | 6 +- gramps2/src/SourceView.py | 19 +- gramps2/src/StyleEditor.py | 63 +- gramps2/src/Utils.py | 17 +- gramps2/src/gramps.glade | 4 +- gramps2/src/grampslib.i | 24 +- gramps2/src/plugins/Desbrowser.py | 4 +- gramps2/src/plugins/DetDescendantReport.py | 6 +- gramps2/src/plugins/EventCmp.py | 2 +- gramps2/src/plugins/FilterEditor.py | 18 +- gramps2/src/plugins/GraphViz.py | 36 +- gramps2/src/plugins/IndivComplete.py | 2 +- gramps2/src/plugins/ReadGedcom.py | 2 +- gramps2/src/plugins/ReadNative.py | 12 +- gramps2/src/plugins/WriteGedcom.py | 10 +- gramps2/src/styles.glade | 2753 ++++++++++---------- 24 files changed, 1567 insertions(+), 1487 deletions(-) diff --git a/gramps2/example/gramps/data.gramps b/gramps2/example/gramps/data.gramps index 5cc4bb89bd3867e6e0b51362836ae19967a0fd57..f62de5b7310ba53877d235e5aa0374e1dc4c792a 100644 GIT binary patch literal 3711 zcmV-_4uJ6=iwFot9J@UN|1W57ZDlWHZ*E~PP;zf-Wn*-6FK2RLZE$lkFJ*XPZE$R5 zFK2RLZE$lhWMOn+E@yIKZE$k{)g13{+q&_4{|e3@h6;#n{jw!tY2FeyZQ9o~LHynx zieVTSi?-QHq(I3@^WX1CNw%DZGUG5F9$K`rMBW|mj>o&>k;lLM$WnAiL_s-w+j9p_ z4-q!w31y47JzDU76piA(+xz9@&GBE}T}^)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*PK<+tX8HdiGy z1D(yl&paVwxi|rqr5Ru5=(7ytjh{$Dm}aoMow_ReKS96ae9lQZ*)RXm3=1~HsxaRP z`XuXpC}w$q69dH22Er9yJzoh#h( zC!6=--tNKQIZskJB~H*+p6*j|?sgpT^pOa~Tll{kcdNr!pYKFqX|5^lx_;ipd)nXX zYH5FwNwL=3<(q;E#u&=QL_YMsEoL2*(F_pK41})#Z9$-=mbR7&cv;) 0: + val = val + d - 1 #first child is always on the same + return val #row as the parent, so subtract 1 diff --git a/gramps2/src/ImageSelect.py b/gramps2/src/ImageSelect.py index 046011db6..83712f343 100644 --- a/gramps2/src/ImageSelect.py +++ b/gramps2/src/ImageSelect.py @@ -54,6 +54,7 @@ import Marriage import EditPlace import EditSource import ListModel +import grampslib from QuestionDialog import ErrorDialog from intl import gettext as _ @@ -428,14 +429,17 @@ class Gallery(ImageSelect): if event.button == 3: photo = self.dataobj.getPhotoList()[icon] - menu = gtk.GtkMenu() - item = gtk.GtkTearoffMenuItem() + menu = gtk.Menu() + item = gtk.TearoffMenuItem() item.show() menu.append(item) - Utils.add_menuitem(menu,_("View in the default viewer"), + mtype = object.getMimeType() + progname = grampslib.default_application_name(mtype) + + Utils.add_menuitem(menu,_("Open in %s") % progname, None,self.popup_view_photo) object = photo.getReference() - if object.getMimeType()[0:5] == "image": + if mtype[0:5] == "image": Utils.add_menuitem(menu,_("Edit with the GIMP"), None,self.popup_edit_photo) Utils.add_menuitem(menu,_("Edit Object Properties"),None, diff --git a/gramps2/src/Report.py b/gramps2/src/Report.py index d6e5898ff..4f0fe91dc 100644 --- a/gramps2/src/Report.py +++ b/gramps2/src/Report.py @@ -58,7 +58,7 @@ import latin_utf8 u2l = latin_utf8.utf8_to_latin _ = intl.gettext -from QuesionDialog import ErrorDialog +from QuestionDialog import ErrorDialog #------------------------------------------------------------------------- # @@ -815,8 +815,8 @@ class ReportDialog: return None if not self.get_target_is_directory() and os.path.isdir(self.target_path): - GnomeErrorDialog(_("The filename that you gave is a directory.\n" - "You need to provide a valid filename.")) + ErrorDialog(_("The filename that you gave is a directory.\n" + "You need to provide a valid filename.")) return None self.set_default_directory(os.path.dirname(self.target_path) + os.sep) diff --git a/gramps2/src/SourceView.py b/gramps2/src/SourceView.py index ae08bc66e..9087bb734 100644 --- a/gramps2/src/SourceView.py +++ b/gramps2/src/SourceView.py @@ -65,7 +65,6 @@ class SourceView: self.db = db self.update = update self.list = glade.get_widget("source_list") - self.id2col = {} self.selection = self.list.get_selection() colno = 0 for title in _column_headers: @@ -88,28 +87,21 @@ class SourceView: gobject.TYPE_STRING) self.list.set_model(self.model) self.list.get_column(0).clicked() -# self.selection.connect('changed',self.list_row_changed) def change_db(self,db): self.db = db def load_sources(self): self.model.clear() - self.id2col = {} for key in self.db.getSourceKeys(): val = self.db.getSourceDisplay(key) iter = self.model.append() - self.id2col[key] = iter self.model.set(iter, 0, val[0], 1, val[1], 2, val[2], 3, val[3], 4, val[4]) self.list.connect('button-press-event',self.button_press) - def list_row_changed(self,obj): - pass -# self.change_active_person(self.db.getPerson(id)) - def button_press(self,obj,event): if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1: store,iter = self.selection.get_selected() @@ -122,12 +114,13 @@ class SourceView: EditSource.EditSource(Source(),self.db,self.new_after_edit) def on_delete_clicked(self,obj): - if len(obj.selection) == 0: + + store,iter = self.selection.get_selected() + if not iter: return - else: - index = obj.selection[0] - - source = self.db.getSourceMap()[obj.get_row_data(index)] + + id = store.get_value(iter,1) + source = self.db.getSource(id) if self.is_used(source): ans = EditSource.DelSrcQuery(source,self.db,self.update) diff --git a/gramps2/src/StyleEditor.py b/gramps2/src/StyleEditor.py index 354c7cc6e..7d23ba734 100644 --- a/gramps2/src/StyleEditor.py +++ b/gramps2/src/StyleEditor.py @@ -41,7 +41,7 @@ import gtk import Utils import const import TextDoc - +import ListModel class StyleListDisplay: """ @@ -66,27 +66,26 @@ class StyleListDisplay: "on_ok_clicked" : self.on_ok_clicked, "on_add_clicked" : self.on_add_clicked, "on_delete_clicked" : self.on_delete_clicked, + "on_button_press" : self.on_button_press, "on_edit_clicked" : self.on_edit_clicked }) - self.list = self.top.get_widget("list") - self.dialog = self.top.get_widget("styles") + + self.list = ListModel.ListModel(self.top.get_widget("list"),[('Style',10,10)]) self.redraw() def redraw(self): """Redraws the list of styles that are current available""" - self.list.clear() + self.list.model.clear() sheet = self.sheetlist.get_style_sheet("default") - self.list.append(["default"]) - self.list.set_row_data(0,("default",sheet)) + self.list.add(["default"]) index = 1 for style in self.sheetlist.get_style_names(): if style == "default": continue sheet = self.sheetlist.get_style_sheet(style) - self.list.append([style]) - self.list.set_row_data(index,(style,sheet)) + self.list.add([style]) index = index + 1 def on_add_clicked(self,obj): @@ -101,22 +100,33 @@ class StyleListDisplay: self.callback() self.sheetlist.save() Utils.destroy_passed_object(obj) - + + def on_button_press(self,obj,event): + if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1: + self.on_edit_clicked(obj) + def on_edit_clicked(self,obj): """ Called with the EDIT button is clicked. Calls the StyleEditor to edit the selected style. """ - if len(self.list.selection) > 0: - (name,style) = self.list.get_row_data(self.list.selection[0]) - StyleEditor(name,style,self) + store,iter = self.list.selection.get_selected() + if not iter: + return + + name = self.list.model.get_value(iter,0) + style = self.sheetlist.get_style_sheet(name) + StyleEditor(name,style,self) def on_delete_clicked(self,obj): """Deletes teh selected style.""" - if len(self.list.selection) > 0: - (name,style) = self.list.get_row_data(self.list.selection[0]) - self.sheetlist.delete_style_sheet(name) - self.redraw() + store,iter = self.list.selection.get_selected() + if not iter: + return + name = self.list.model.get_value(iter,0) + style = self.sheetlist.get_style_sheet(name) + self.sheetlist.delete_style_sheet(name) + self.redraw() class StyleEditor: """ @@ -141,26 +151,23 @@ class StyleEditor: self.top.signal_autoconnect({ "on_save_style_clicked" : self.on_save_style_clicked, + "fg_color_set":self.fg_color_set, + "bg_color_set":self.bg_color_set, "destroy_passed_object" : Utils.destroy_passed_object }) self.window = self.top.get_widget("editor") self.pnames = self.top.get_widget("name") - # Typing CR selects OK button - self.window.editable_enters(self.top.get_widget("rmargin")) - self.window.editable_enters(self.top.get_widget("lmargin")) - self.window.editable_enters(self.top.get_widget("pad")) - self.top.get_widget("style_name").set_text(name) - myMenu = gtk.GtkMenu() + myMenu = gtk.Menu() first = 0 for p_name in self.style.get_names(): p = self.style.get_style(p_name) if first == 0: self.draw(p) first = 1 - menuitem = gtk.GtkMenuItem(p_name) + menuitem = gtk.MenuItem(p_name) menuitem.set_data("o",p) menuitem.connect("activate",self.change_display) menuitem.show() @@ -200,6 +207,12 @@ class StyleEditor: c = p.get_background_color() self.top.get_widget("bgcolor").set_i8(c[0],c[1],c[2],0) + def bg_color_set(self,obj,r,g,b,a): + print r,g,b,a + + def fg_color_set(self,obj,r,g,b,a): + print r,g,b,ax + def save_paragraph(self,p): """Saves the current paragraph displayed on the dialog""" @@ -231,9 +244,9 @@ class StyleEditor: p.set_right_border(self.top.get_widget("rborder").get_active()) p.set_bottom_border(self.top.get_widget("bborder").get_active()) - c = self.top.get_widget("color").get_i8() + c = fg.get_i8() font.set_color((c[0],c[1],c[2])) - c = self.top.get_widget("bgcolor").get_i8() + c = bg.get_i8() p.set_background_color((c[0],c[1],c[2])) def on_save_style_clicked(self,obj): diff --git a/gramps2/src/Utils.py b/gramps2/src/Utils.py index 83d7ca318..4b18e4fa4 100644 --- a/gramps2/src/Utils.py +++ b/gramps2/src/Utils.py @@ -264,21 +264,14 @@ def add_menuitem(menu,msg,obj,func): #------------------------------------------------------------------------- def view_photo(photo): type = photo.getMimeType() - prog = "" - open = "" - edit = "" - #for key in gnome.mime.get_keys(type): - # if key == 'view': - # prog = string.split(gnome.mime.get_value(type,key)) - # if key == 'open': - # open = string.split(gnome.mime.get_value(type,key)) - # if key == 'edit': - # edit = string.split(gnome.mime.get_value(type,key)) + prog = grampslib.gnome_vfs_mime_get_value(type,'view') + open = grampslib.gnome_vfs_mime_get_value(type,'open') + edit = grampslib.gnome_vfs_mime_get_value(type,'edit') if prog == "" and open == "" and edit == "": #GnomeWarningDialog("Sorry, I cannot find a viewer for %s type" % type) return - if prog == "" and open == "": + if not prog and not open : prog = edit else: prog = open @@ -360,8 +353,6 @@ def get_place_from_list(obj): else: return select[0].get_data(LISTOBJ) -import os - def find_icon(mtype): n = "%s/icons/%s.png" % (const.rootDir,string.replace(string.replace(mtype,'/','-'),'.','-')) if os.path.isfile(n): diff --git a/gramps2/src/gramps.glade b/gramps2/src/gramps.glade index 579204679..f88676186 100644 --- a/gramps2/src/gramps.glade +++ b/gramps2/src/gramps.glade @@ -1865,7 +1865,7 @@ - + True Adds a new child to the selected family True @@ -1891,7 +1891,7 @@ - + True Deletes the selected child from the selected family True diff --git a/gramps2/src/grampslib.i b/gramps2/src/grampslib.i index 3b68fb4cd..93df1a14c 100644 --- a/gramps2/src/grampslib.i +++ b/gramps2/src/grampslib.i @@ -1,6 +1,22 @@ %module grampslib +%{ +#include +%} -extern char* gnome_vfs_mime_get_icon(const char *); -extern char* gnome_vfs_mime_type_from_name(const char* ); -extern char* gnome_vfs_mime_get_description(const char*); -extern char* gnome_vfs_mime_get_value(const char*,const char*); +extern const char* gnome_vfs_mime_get_icon(const char *); +extern const char* gnome_vfs_mime_type_from_name(const char* ); +extern const char* gnome_vfs_mime_get_description(const char*); +extern const char* gnome_vfs_mime_get_value(const char*,const char*); + +%inline %{ +const char* default_application_name(const char* type) { + GnomeVFSMimeApplication *a = gnome_vfs_mime_get_default_application(type); + return a->name; +} + +const char* default_application_command(const char* type) { + GnomeVFSMimeApplication *a = gnome_vfs_mime_get_default_application(type); + return a->command; +} + +%} diff --git a/gramps2/src/plugins/Desbrowser.py b/gramps2/src/plugins/Desbrowser.py index c69fd0d18..08625e178 100644 --- a/gramps2/src/plugins/Desbrowser.py +++ b/gramps2/src/plugins/Desbrowser.py @@ -79,7 +79,7 @@ class DesBrowse: top.show() def add_to_tree(self,tree,person): - item = gtk.GtkTreeItem(GrampsCfg.nameof(person)) + item = gtk.TreeItem(GrampsCfg.nameof(person)) item.show() item.connect('button-press-event',self.button_press_event) item.set_data('d',person) @@ -88,7 +88,7 @@ class DesBrowse: for family in person.getFamilyList(): for child in family.getChildList(): if subtree == None: - subtree = gtk.GtkTree() + subtree = gtk.Tree() subtree.show() item.set_subtree(subtree) self.add_to_tree(subtree,child) diff --git a/gramps2/src/plugins/DetDescendantReport.py b/gramps2/src/plugins/DetDescendantReport.py index 0d395c814..428a975a0 100644 --- a/gramps2/src/plugins/DetDescendantReport.py +++ b/gramps2/src/plugins/DetDescendantReport.py @@ -771,15 +771,15 @@ class DetDescendantReportDialog(TextReportDialog): def add_user_options(self): # Create a GTK Checkbox widget for pronoun usage - self.first_name_option = gtk.GtkCheckButton(_("Use first names instead of pronouns")) + self.first_name_option = gtk.CheckButton(_("Use first names instead of pronouns")) self.first_name_option.set_active(0) # Create a GTK Checkbox widget for full date usage - self.full_date_option = gtk.GtkCheckButton(_("Use full dates instead of only the year")) + self.full_date_option = gtk.CheckButton(_("Use full dates instead of only the year")) self.full_date_option.set_active(1) # Create a GTK Checkbox widget for full date usage - self.list_children_option = gtk.GtkCheckButton(_("List children")) + self.list_children_option = gtk.CheckButton(_("List children")) self.list_children_option.set_active(1) # Add new options. The first argument is the tab name for grouping options. diff --git a/gramps2/src/plugins/EventCmp.py b/gramps2/src/plugins/EventCmp.py index 7bb8e45ae..2b72beffe 100644 --- a/gramps2/src/plugins/EventCmp.py +++ b/gramps2/src/plugins/EventCmp.py @@ -204,7 +204,7 @@ class DisplayChart: def draw_clist_display(self): - eventlist = gtk.GtkCList(len(self.event_titles),self.event_titles) + eventlist = gtk.CList(len(self.event_titles),self.event_titles) self.table.add(eventlist) eventlist.show() diff --git a/gramps2/src/plugins/FilterEditor.py b/gramps2/src/plugins/FilterEditor.py index df3c99ec5..b5dae5f64 100644 --- a/gramps2/src/plugins/FilterEditor.py +++ b/gramps2/src/plugins/FilterEditor.py @@ -229,7 +229,7 @@ class FilterEditor: self.frame = self.rule.get_widget('values') self.rname = self.rule.get_widget('rule_name') - self.notebook = gtk.GtkNotebook() + self.notebook = gtk.Notebook() self.notebook.set_show_tabs(0) self.notebook.set_show_border(0) self.notebook.show() @@ -247,13 +247,13 @@ class FilterEditor: vallist = [] tlist = [] self.page.append((name,cname,vallist,tlist)) - table = gtk.GtkTable(2,len(arglist)) + table = gtk.Table(2,len(arglist)) table.show() pos = 0 - l2 = gtk.GtkLabel(name) + l2 = gtk.Label(name) l2.set_alignment(0,0.5) l2.show() - c = gtk.GtkListItem() + c = gtk.ListItem() c.add(l2) c.set_data('d',pos) c.show() @@ -261,27 +261,27 @@ class FilterEditor: map[name] = c for v in arglist: v1 = _(v) - l = gtk.GtkLabel(v1) + l = gtk.Label(v1) l.set_alignment(1,0.5) l.show() if v == 'Place': - t = gtk.GtkCombo() + t = gtk.Combo() AutoComp.AutoCombo(t,self.pmap.keys()) elif _name2list.has_key(v1): - t = gtk.GtkCombo() + t = gtk.Combo() _name2list[v1].sort() t.set_popdown_strings(_name2list[v1]) t.set_value_in_list(1,0) t.entry.set_editable(0) tlist.append(t.entry) else: - t = gtk.GtkEntry() + t = gtk.Entry() tlist.append(t) t.show() table.attach(l,0,1,pos,pos+1,gtk.gdk.FILL,0,5,5) table.attach(t,1,2,pos,pos+1,gtk.gdk.EXPAND|gtk.gdk.FILL,0,5,5) pos = pos + 1 - self.notebook.append_page(table,gtk.GtkLabel(name)) + self.notebook.append_page(table,gtk.Label(name)) self.name2page[name] = self.page_num self.page_num = self.page_num + 1 self.page_num = 0 diff --git a/gramps2/src/plugins/GraphViz.py b/gramps2/src/plugins/GraphViz.py index d70f2bba0..a43aa1fd8 100644 --- a/gramps2/src/plugins/GraphViz.py +++ b/gramps2/src/plugins/GraphViz.py @@ -95,25 +95,25 @@ class GraphVizDialog(ReportDialog): return [all,des,ans] def add_user_options(self): - self.arrowstyle_optionmenu = gtk.GtkOptionMenu() - menu = gtk.GtkMenu() + self.arrowstyle_optionmenu = gtk.OptionMenu() + menu = gtk.Menu() - menuitem = gtk.GtkMenuItem(_("Descendants <- Ancestors")) + menuitem = gtk.MenuItem(_("Descendants <- Ancestors")) menuitem.set_data('t', ('none', 'normal')) menuitem.show() menu.append(menuitem) - menuitem = gtk.GtkMenuItem(_("Descendants -> Ancestors")) + menuitem = gtk.MenuItem(_("Descendants -> Ancestors")) menuitem.set_data('t', ('normal', 'none')) menuitem.show() menu.append(menuitem) - menuitem = gtk.GtkMenuItem(_("Descendants <-> Ancestors")) + menuitem = gtk.MenuItem(_("Descendants <-> Ancestors")) menuitem.set_data('t', ('normal', 'normal')) menuitem.show() menu.append(menuitem) - menuitem = gtk.GtkMenuItem(_("Descendants - Ancestors")) + menuitem = gtk.MenuItem(_("Descendants - Ancestors")) menuitem.set_data('t', ('none', 'none')) menuitem.show() menu.append(menuitem) @@ -128,7 +128,7 @@ class GraphVizDialog(ReportDialog): _("Choose the direction that the arrows point.")) msg = _("Include Birth and Death Dates") - self.includedates_cb = gtk.GtkCheckButton(msg) + self.includedates_cb = gtk.CheckButton(msg) self.includedates_cb.set_active(1) self.add_frame_option(_("GraphViz Options"), '', self.includedates_cb, @@ -136,7 +136,7 @@ class GraphVizDialog(ReportDialog): "was born and/or died in the graph node " "labels.")) - self.includeurl_cb = gtk.GtkCheckButton(_("Include URLs")) + self.includeurl_cb = gtk.CheckButton(_("Include URLs")) self.includeurl_cb.set_active(1) self.add_frame_option(_("GraphViz Options"), '', self.includeurl_cb, @@ -146,7 +146,7 @@ class GraphVizDialog(ReportDialog): "to the files generated by the 'Generate " "Web Site' report.")) - self.colorize_cb = gtk.GtkCheckButton(_("Colorize Graph")) + self.colorize_cb = gtk.CheckButton(_("Colorize Graph")) self.colorize_cb.set_active(1) self.add_frame_option(_("GraphViz Options"), '', @@ -156,7 +156,7 @@ class GraphVizDialog(ReportDialog): "an individual is unknown it will be " "outlined in black.")) - self.adoptionsdashed_cb = gtk.GtkCheckButton(_("Indicate non-birth relationships with dashed lines")) + self.adoptionsdashed_cb = gtk.CheckButton(_("Indicate non-birth relationships with dashed lines")) self.adoptionsdashed_cb.set_active(1) self.add_frame_option(_("GraphViz Options"), '', @@ -164,13 +164,13 @@ class GraphVizDialog(ReportDialog): _("Non-birth relationships will show up " "as dashed lines in the graph.")) - tb_margin_adj = gtk.GtkAdjustment(value=0.5, lower=0.25, + tb_margin_adj = gtk.Adjustment(value=0.5, lower=0.25, upper=100.0, step_incr=0.25) - lr_margin_adj = gtk.GtkAdjustment(value=0.5, lower=0.25, + lr_margin_adj = gtk.Adjustment(value=0.5, lower=0.25, upper=100.0, step_incr=0.25) - self.tb_margin_sb = gtk.GtkSpinButton(adj=tb_margin_adj, digits=2) - self.lr_margin_sb = gtk.GtkSpinButton(adj=lr_margin_adj, digits=2) + self.tb_margin_sb = gtk.SpinButton(adj=tb_margin_adj, digits=2) + self.lr_margin_sb = gtk.SpinButton(adj=lr_margin_adj, digits=2) self.add_frame_option(_("GraphViz Options"), _("Top & Bottom Margins"), @@ -179,11 +179,11 @@ class GraphVizDialog(ReportDialog): _("Left & Right Margins"), self.lr_margin_sb) - hpages_adj = gtk.GtkAdjustment(value=1, lower=1, upper=25, step_incr=1) - vpages_adj = gtk.GtkAdjustment(value=1, lower=1, upper=25, step_incr=1) + hpages_adj = gtk.Adjustment(value=1, lower=1, upper=25, step_incr=1) + vpages_adj = gtk.Adjustment(value=1, lower=1, upper=25, step_incr=1) - self.hpages_sb = gtk.GtkSpinButton(adj=hpages_adj, digits=0) - self.vpages_sb = gtk.GtkSpinButton(adj=vpages_adj, digits=0) + self.hpages_sb = gtk.SpinButton(adj=hpages_adj, digits=0) + self.vpages_sb = gtk.SpinButton(adj=vpages_adj, digits=0) self.add_frame_option(_("GraphViz Options"), _("Number of Horizontal Pages"), diff --git a/gramps2/src/plugins/IndivComplete.py b/gramps2/src/plugins/IndivComplete.py index 31f63724d..746a37474 100644 --- a/gramps2/src/plugins/IndivComplete.py +++ b/gramps2/src/plugins/IndivComplete.py @@ -432,7 +432,7 @@ class IndivSummaryDialog(TextReportDialog): TextReportDialog.__init__(self,database,person) def add_user_options(self): - self.use_srcs = gtk.GtkCheckButton(_('Include Source Information')) + self.use_srcs = gtk.CheckButton(_('Include Source Information')) self.use_srcs.show() self.add_option('',self.use_srcs) diff --git a/gramps2/src/plugins/ReadGedcom.py b/gramps2/src/plugins/ReadGedcom.py index c4d248b06..cd84783bb 100644 --- a/gramps2/src/plugins/ReadGedcom.py +++ b/gramps2/src/plugins/ReadGedcom.py @@ -1655,7 +1655,7 @@ def readData(database,active_person,cb): db = database callback = cb - top = gtk.GtkFileSelection("%s - GRAMPS" % _("Import from GEDCOM")) + top = gtk.FileSelection("%s - GRAMPS" % _("Import from GEDCOM")) top.hide_fileop_buttons() top.ok_button.connect_object('clicked', on_ok_clicked,top) top.cancel_button.connect_object('clicked', Utils.destroy_passed_object,top) diff --git a/gramps2/src/plugins/ReadNative.py b/gramps2/src/plugins/ReadNative.py index 820ecb14e..161f0422b 100644 --- a/gramps2/src/plugins/ReadNative.py +++ b/gramps2/src/plugins/ReadNative.py @@ -46,20 +46,20 @@ class ReadNative: self.db = database self.callback = cb - self.top = gtk.GtkFileSelection("%s - GRAMPS" % _("Import from GRAMPS")) + self.top = gtk.FileSelection("%s - GRAMPS" % _("Import from GRAMPS")) self.top.hide_fileop_buttons() self.top.ok_button.connect('clicked', self.on_ok_clicked) self.top.cancel_button.connect_object('clicked', Utils.destroy_passed_object,self.top) self.top.show() def show_display(self): - self.window = gtk.GtkWindow(title=_("Import from GRAMPS")) - vbox = gtk.GtkVBox() + self.window = gtk.Window(title=_("Import from GRAMPS")) + vbox = gtk.VBox() self.window.add(vbox) - label = gtk.GtkLabel(_("Import from GRAMPS")) + label = gtk.Label(_("Import from GRAMPS")) vbox.add(label) - adj = gtk.GtkAdjustment(lower=0,upper=100) - self.progress_bar = gtk.GtkProgressBar(adj) + adj = gtk.Adjustment(lower=0,upper=100) + self.progress_bar = gtk.ProgressBar(adj) vbox.add(self.progress_bar) self.window.show_all() diff --git a/gramps2/src/plugins/WriteGedcom.py b/gramps2/src/plugins/WriteGedcom.py index 38f6dfa9c..e1461b598 100644 --- a/gramps2/src/plugins/WriteGedcom.py +++ b/gramps2/src/plugins/WriteGedcom.py @@ -346,9 +346,9 @@ class GedcomWriter: gedmap = GedcomInfoDB() target_obj = self.topDialog.get_widget("target") - myMenu = gtk.GtkMenu() + myMenu = gtk.Menu() for name in gedmap.get_name_list(): - menuitem = gtk.GtkMenuItem(name) + menuitem = gtk.MenuItem(name) myMenu.append(menuitem) data = gedmap.get_description(name) menuitem.set_data("data",data) @@ -649,7 +649,7 @@ class GedcomWriter: for f in person.getParentList(): mrel = string.lower(f[1]) frel = string.lower(f[2]) - if mrel=="adopted" or mrel=="adopted": + if mrel=="adopted" or frel=="adopted": fam = f[0] break if fam: @@ -675,7 +675,7 @@ class GedcomWriter: for f in person.getParentList(): mrel = string.lower(f[1]) frel = string.lower(f[2]) - if mrel=="adopted" or mrel=="adopted": + if mrel=="adopted" or frel=="adopted": fam = f[0] break if fam: @@ -872,7 +872,7 @@ class GedcomWriter: val = "FROM %s TO %s" % (make_date(start,mlist), make_date(stop,mlist)) else: - val = make_date(start,_hmonth) + val = make_date(start,mlist) self.g.write("%s %s %s\n" % (prefix,cal,val)) else: mydate = Date.Date(date) diff --git a/gramps2/src/styles.glade b/gramps2/src/styles.glade index f770b34c9..7994b02f1 100644 --- a/gramps2/src/styles.glade +++ b/gramps2/src/styles.glade @@ -1,1376 +1,1421 @@ - - + + - - Styles - styles - - - - C - True - True - False - False - False - + + - - GnomeDialog - styles - Document Styles - GRAMPS - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False - True - True - False - False - False + + True + Document Styles - GRAMPS + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + True + 400 + 300 + True + False + True - - GtkVBox - GnomeDialog:vbox - dialog-vbox1 - 300 - 250 - False - 0 - - 4 - True - True - + + + True + False + 0 - - GtkHButtonBox - GnomeDialog:action_area - dialog-action_area1 - GTK_BUTTONBOX_END - 8 - 85 - 27 - 7 - 0 - - 0 - False - True - GTK_PACK_END - + + + True + GTK_BUTTONBOX_END - - GtkButton - button1 - True - True - True - - clicked - on_ok_clicked - styles - Tue, 05 Jun 2001 13:12:07 GMT - - GNOME_STOCK_BUTTON_OK - - - - GtkButton - button2 - True - True - - clicked - destroy_passed_object - styles - Tue, 05 Jun 2001 13:11:44 GMT - - GNOME_STOCK_BUTTON_CANCEL - - - - - GtkVBox - vbox1 - False - 0 - - 0 - True - True - - - - GtkLabel - label1 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 10 - - 0 - False - False - - - - - GtkHSeparator - hseparator1 - - 5 - False - True - - - - - GtkHBox - hbox1 - False - 0 - - 0 - True - True - - - - GtkScrolledWindow - scrolledwindow1 - GTK_POLICY_NEVER - GTK_POLICY_AUTOMATIC - GTK_UPDATE_CONTINUOUS - GTK_UPDATE_CONTINUOUS - 0 - True - True - - - - GtkCList - list - True - - select_row - on_list_select_row - styles - Tue, 05 Jun 2001 13:15:34 GMT - - - button_press_event - on_list_button_press_event - styles - Tue, 05 Jun 2001 13:15:48 GMT - - 1 - 80 - GTK_SELECTION_SINGLE - False - GTK_SHADOW_IN - - - GtkLabel - CList:title - label2 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 + + True + True + True + True + gtk-ok + True + GTK_RELIEF_NORMAL + 0 + - - - - - GtkVButtonBox - vbuttonbox1 - GTK_BUTTONBOX_START - 10 - 85 - 27 - 7 - 0 - - 0 - False - True - - GtkButton - button3 - True - True - - clicked - on_add_clicked - styles - Tue, 05 Jun 2001 13:14:32 GMT - - - GTK_RELIEF_NORMAL - - - - GtkButton - button4 - True - True - - clicked - on_edit_clicked - styles - Tue, 05 Jun 2001 13:14:43 GMT - - - GTK_RELIEF_NORMAL - - - - GtkButton - button5 - True - True - - clicked - on_delete_clicked - styles - Sat, 16 Jun 2001 03:11:52 GMT - - - GTK_RELIEF_NORMAL - + + + True + True + True + gtk-cancel + True + GTK_RELIEF_NORMAL + 0 + + + - + + 0 + False + True + GTK_PACK_END + + + + + + True + False + 0 + + + + True + Document Styles + False + False + GTK_JUSTIFY_CENTER + False + False + 0.5 + 0.5 + 0 + 10 + + + 0 + False + False + + + + + + True + + + 5 + False + True + + + + + + True + False + 0 + + + + True + GTK_POLICY_NEVER + GTK_POLICY_AUTOMATIC + GTK_SHADOW_IN + GTK_CORNER_TOP_LEFT + + + + True + True + True + False + False + True + + + + + + 0 + True + True + + + + + + True + GTK_BUTTONBOX_START + 10 + + + + True + True + True + GTK_RELIEF_NORMAL + + + + + True + 0.5 + 0.5 + 0 + 0 + + + + True + False + 2 + + + + True + gtk-add + 4 + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + Add + True + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + + + + + + + True + True + True + Edit + True + GTK_RELIEF_NORMAL + + + + + + + True + True + True + GTK_RELIEF_NORMAL + + + + + True + 0.5 + 0.5 + 0 + 0 + + + + True + False + 2 + + + + True + gtk-remove + 4 + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + True + Delete + True + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + + + + + + + 0 + False + True + + + + + 0 + True + True + + + + + 0 + True + True + + - + - - GnomeDialog - editor - Style Editor - GRAMPS - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False - True - True - False - False - False + + True + Style Editor - GRAMPS + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + True + True + False + True - - GtkVBox - GnomeDialog:vbox - dialog-vbox2 - 600 - False - 0 - - 4 - True - True - + + + True + False + 0 - - GtkHButtonBox - GnomeDialog:action_area - dialog-action_area2 - GTK_BUTTONBOX_END - 8 - 85 - 27 - 7 - 0 - - 0 - False - True - GTK_PACK_END + + + True + GTK_BUTTONBOX_END + + + + True + True + True + True + gtk-ok + True + GTK_RELIEF_NORMAL + 0 + + + + + + + True + True + True + gtk-cancel + True + GTK_RELIEF_NORMAL + 0 + + + + + + 0 + False + True + GTK_PACK_END + - - GtkButton - button7 - True - True - True - - clicked - on_save_style_clicked - editor - Tue, 05 Jun 2001 18:48:01 GMT - - GNOME_STOCK_BUTTON_OK - - - - GtkButton - button8 - True - True - - clicked - destroy_passed_object - editor - Tue, 05 Jun 2001 18:47:41 GMT - - GNOME_STOCK_BUTTON_CANCEL - - - - - GtkVBox - vbox2 - False - 0 - 0 - True - True + + True + False + 0 + + + + True + Style Editor + False + False + GTK_JUSTIFY_CENTER + False + False + 0.5 + 0.5 + 5 + 5 + + + 10 + False + True + + + + + + True + + + 5 + False + True + + + + + + True + False + 0 + + + + True + Style Name + False + False + GTK_JUSTIFY_CENTER + False + False + 0.5 + 0.5 + 0 + 0 + + + 10 + False + False + + + + + + True + True + True + True + True + 0 + + True + * + False + + + 0 + False + False + + + + + + True + Paragraph Style + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0.5 + 5 + 5 + + + 10 + True + True + + + + + + True + True + -1 + + + + True + + + + + 5 + True + True + + + + + 0 + False + False + + + + + + True + False + 0 + + + + 5 + True + 0 + 0.5 + GTK_SHADOW_ETCHED_IN + + + + True + 6 + 3 + False + 0 + 0 + + + + True + pt + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 2 + 3 + 1 + 2 + fill + + + + + + + True + True + 1 + 0 + False + GTK_UPDATE_ALWAYS + False + False + 1 0 100 1 10 10 + + + 1 + 2 + 1 + 2 + 5 + 5 + + + + + + + True + Size + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0.5 + 5 + 5 + + + 0 + 1 + 1 + 2 + 5 + 5 + fill + + + + + + + True + Color + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0.5 + 5 + 5 + + + 0 + 1 + 2 + 3 + 5 + 5 + fill + + + + + + + True + Type Face + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0 + 5 + 5 + + + 0 + 1 + 0 + 1 + 5 + 5 + fill + fill + + + + + + True + True + Bold + True + GTK_RELIEF_NORMAL + False + False + True + + + 1 + 3 + 3 + 4 + 5 + 5 + fill + + + + + + + True + True + Italic + True + GTK_RELIEF_NORMAL + False + False + True + + + 1 + 3 + 4 + 5 + 5 + 5 + fill + + + + + + + True + True + Underline + True + GTK_RELIEF_NORMAL + False + False + True + + + 1 + 3 + 5 + 6 + 5 + 5 + fill + + + + + + + True + False + 0 + + + + True + True + roman (Times) + True + GTK_RELIEF_NORMAL + False + False + True + + + 5 + False + False + + + + + + True + True + swiss (Arial, Helvetica) + True + GTK_RELIEF_NORMAL + False + False + True + roman + + + 0 + False + False + + + + + 1 + 3 + 0 + 1 + fill + fill + + + + + + True + True + True + False + Pick a color + + + + 1 + 3 + 2 + 3 + 5 + 5 + + + + + + + + True + Options + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0 + 5 + 5 + + + 0 + 1 + 3 + 6 + 5 + 5 + fill + fill + + + + + + + + True + Font Options + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + label_item + + + + + 0 + True + True + + + + + + 5 + True + 0 + 0.5 + GTK_SHADOW_ETCHED_IN + + + + True + 6 + 3 + False + 0 + 0 + + + + True + Background + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0.5 + 5 + 5 + + + 0 + 1 + 1 + 2 + fill + + + + + + + True + Right Margin + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0.5 + 5 + 5 + + + 0 + 1 + 2 + 3 + fill + + + + + + + True + Left Margin + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0.5 + 5 + 5 + + + 0 + 1 + 3 + 4 + fill + + + + + + + True + Padding + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0.5 + 5 + 5 + + + 0 + 1 + 4 + 5 + fill + + + + + + + True + cm + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 2 + 3 + 4 + 5 + 5 + 5 + fill + + + + + + + True + cm + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 2 + 3 + 3 + 4 + 5 + 5 + fill + + + + + + + True + cm + False + False + GTK_JUSTIFY_CENTER + False + False + 0 + 0.5 + 0 + 0 + + + 2 + 3 + 2 + 3 + 5 + fill + + + + + + + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 2 + 3 + 5 + 5 + + + + + + + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 3 + 4 + 5 + 5 + + + + + + + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 4 + 5 + 5 + 5 + + + + + + + True + Alignment + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0 + 5 + 5 + + + 0 + 1 + 0 + 1 + 5 + 5 + fill + + + + + + True + Borders + False + False + GTK_JUSTIFY_CENTER + False + False + 1 + 0 + 5 + 5 + + + 0 + 1 + 5 + 6 + 5 + 5 + fill + + + + + + True + 2 + 2 + True + 0 + 0 + + + + True + True + left + True + GTK_RELIEF_NORMAL + False + False + True + + + 0 + 1 + 0 + 1 + + + + + + + True + True + right + True + GTK_RELIEF_NORMAL + False + False + True + lalign + + + 1 + 2 + 0 + 1 + + + + + + + True + True + center + True + GTK_RELIEF_NORMAL + False + False + True + lalign + + + 0 + 1 + 1 + 2 + + + + + + + True + True + justify + True + GTK_RELIEF_NORMAL + False + False + True + lalign + + + 1 + 2 + 1 + 2 + + + + + + 1 + 3 + 0 + 1 + fill + fill + + + + + + True + 2 + 2 + True + 0 + 0 + + + + True + True + left + True + GTK_RELIEF_NORMAL + False + False + True + + + 0 + 1 + 0 + 1 + + + + + + + True + True + top + True + GTK_RELIEF_NORMAL + False + False + True + + + 0 + 1 + 1 + 2 + + + + + + + True + True + right + True + GTK_RELIEF_NORMAL + False + False + True + + + 1 + 2 + 0 + 1 + + + + + + + True + True + bottom + True + GTK_RELIEF_NORMAL + False + False + True + + + 1 + 2 + 1 + 2 + + + + + + 1 + 3 + 5 + 6 + 5 + 5 + fill + fill + + + + + + True + True + True + False + Pick a color + + + + 1 + 3 + 1 + 2 + 5 + 5 + + + + + + + + + + True + Paragraph Options + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + label_item + + + + + 0 + True + True + + + + + 0 + True + True + + + + + 0 + True + True + - - - GtkLabel - label3 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 5 - 5 - - 10 - False - True - - - - - GtkHSeparator - hseparator2 - - 5 - False - True - - - - - GtkHBox - hbox5 - False - 0 - - 0 - False - False - - - - GtkLabel - label19 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - - 10 - False - False - - - - - GtkEntry - style_name - True - True - True - True - 0 - - - 0 - False - False - - - - - GtkLabel - label18 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 5 - 5 - - 10 - True - True - - - - - GtkOptionMenu - name - True - - - 0 - - 5 - True - True - - - - - - GtkHBox - hbox4 - False - 0 - - 0 - True - True - - - - GtkFrame - frame1 - 5 - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - True - True - - - - GtkTable - table2 - 6 - 3 - False - 0 - 0 - - - GtkLabel - label6 - - GTK_JUSTIFY_CENTER - False - 0 - 0.5 - 0 - 0 - - 2 - 3 - 1 - 2 - 0 - 0 - False - False - False - False - True - False - - - - - GtkSpinButton - size - True - 1 - 0 - False - GTK_UPDATE_ALWAYS - False - False - 1 - 0 - 100 - 1 - 10 - 10 - - 1 - 2 - 1 - 2 - 5 - 5 - True - False - False - False - True - False - - - - - GtkLabel - label5 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 5 - 5 - - 0 - 1 - 1 - 2 - 5 - 5 - False - False - False - False - True - False - - - - - GtkLabel - label8 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 5 - 5 - - 0 - 1 - 2 - 3 - 5 - 5 - False - False - False - False - True - False - - - - - GtkLabel - label4 - - GTK_JUSTIFY_CENTER - False - 1 - 0 - 5 - 5 - - 0 - 1 - 0 - 1 - 5 - 5 - False - False - False - False - True - True - - - - - GtkCheckButton - bold - True - - False - True - - 1 - 3 - 3 - 4 - 5 - 5 - False - False - False - False - True - False - - - - - GtkCheckButton - italic - True - - False - True - - 1 - 3 - 4 - 5 - 5 - 5 - False - False - False - False - True - False - - - - - GtkCheckButton - underline - True - - False - True - - 1 - 3 - 5 - 6 - 5 - 5 - False - False - False - False - True - False - - - - - GtkVBox - vbox3 - False - 0 - - 1 - 3 - 0 - 1 - 0 - 0 - False - False - False - False - True - True - - - - GtkRadioButton - roman - True - - False - True - face - - 5 - False - False - - - - - GtkRadioButton - swiss - True - - False - True - face - - 0 - False - False - - - - - - GnomeColorPicker - color - True - True - False - Pick a color - - 1 - 3 - 2 - 3 - 5 - 5 - False - False - False - False - False - False - - - - - GtkLabel - label7 - - GTK_JUSTIFY_CENTER - False - 1 - 0 - 5 - 5 - - 0 - 1 - 3 - 6 - 5 - 5 - False - False - False - False - True - True - - - - - - - GtkFrame - frame2 - 5 - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - True - True - - - - GtkTable - table3 - 6 - 3 - False - 0 - 0 - - - GtkLabel - label10 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 5 - 5 - - 0 - 1 - 1 - 2 - 0 - 0 - False - False - False - False - True - False - - - - - GtkLabel - label11 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 5 - 5 - - 0 - 1 - 2 - 3 - 0 - 0 - False - False - False - False - True - False - - - - - GtkLabel - label12 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 5 - 5 - - 0 - 1 - 3 - 4 - 0 - 0 - False - False - False - False - True - False - - - - - GtkLabel - label13 - - GTK_JUSTIFY_CENTER - False - 1 - 0.5 - 5 - 5 - - 0 - 1 - 4 - 5 - 0 - 0 - False - False - False - False - True - False - - - - - GtkLabel - label17 - - GTK_JUSTIFY_CENTER - False - 0 - 0.5 - 0 - 0 - - 2 - 3 - 4 - 5 - 5 - 5 - False - False - False - False - True - False - - - - - GtkLabel - label16 - - GTK_JUSTIFY_CENTER - False - 0 - 0.5 - 0 - 0 - - 2 - 3 - 3 - 4 - 5 - 5 - False - False - False - False - True - False - - - - - GtkLabel - label15 - - GTK_JUSTIFY_CENTER - False - 0 - 0.5 - 0 - 0 - - 2 - 3 - 2 - 3 - 5 - 0 - False - False - False - False - True - False - - - - - GtkEntry - rmargin - True - True - True - 0 - - - 1 - 2 - 2 - 3 - 5 - 5 - True - False - False - False - True - False - - - - - GtkEntry - lmargin - True - True - True - 0 - - - 1 - 2 - 3 - 4 - 5 - 5 - True - False - False - False - True - False - - - - - GtkEntry - pad - True - True - True - 0 - - - 1 - 2 - 4 - 5 - 5 - 5 - True - False - False - False - True - False - - - - - GtkLabel - label9 - - GTK_JUSTIFY_CENTER - False - 1 - 0 - 5 - 5 - - 0 - 1 - 0 - 1 - 5 - 5 - False - True - False - False - True - True - - - - - GtkLabel - label14 - - GTK_JUSTIFY_CENTER - False - 1 - 0 - 5 - 5 - - 0 - 1 - 5 - 6 - 5 - 5 - False - True - False - False - True - True - - - - - GtkTable - table6 - 2 - 2 - True - 0 - 0 - - 1 - 3 - 0 - 1 - 0 - 0 - False - False - False - False - True - True - - - - GtkRadioButton - lalign - True - - False - True - align - - 0 - 1 - 0 - 1 - 0 - 0 - True - False - False - False - True - False - - - - - GtkRadioButton - ralign - True - - False - True - align - - 1 - 2 - 0 - 1 - 0 - 0 - True - False - False - False - True - False - - - - - GtkRadioButton - calign - True - - False - True - align - - 0 - 1 - 1 - 2 - 0 - 0 - True - False - False - False - True - False - - - - - GtkRadioButton - jalign - True - - False - True - align - - 1 - 2 - 1 - 2 - 0 - 0 - True - False - False - False - True - False - - - - - - GtkTable - table5 - 2 - 2 - True - 0 - 0 - - 1 - 3 - 5 - 6 - 5 - 5 - False - False - False - False - True - True - - - - GtkCheckButton - lborder - True - - False - True - - 0 - 1 - 0 - 1 - 0 - 0 - True - False - False - False - True - False - - - - - GtkCheckButton - tborder - True - - False - True - - 0 - 1 - 1 - 2 - 0 - 0 - True - False - False - False - True - False - - - - - GtkCheckButton - rborder - True - - False - True - - 1 - 2 - 0 - 1 - 0 - 0 - True - False - False - False - True - False - - - - - GtkCheckButton - bborder - True - - False - True - - 1 - 2 - 1 - 2 - 0 - 0 - True - False - False - False - True - False - - - - - - GnomeColorPicker - bgcolor - True - True - False - Pick a color - - 1 - 3 - 1 - 2 - 5 - 5 - False - False - False - False - False - False - - - - - - + - +