Merge branch 'master' into geps/gep-032-database-backend
This commit is contained in:
commit
beae0b9319
@ -312,7 +312,7 @@ class ConfigureDialog(ManagedWindow):
|
|||||||
config = self.__config
|
config = self.__config
|
||||||
text = Gtk.Label()
|
text = Gtk.Label()
|
||||||
text.set_line_wrap(line_wrap)
|
text.set_line_wrap(line_wrap)
|
||||||
text.set_alignment(0.,0.)
|
text.set_halign(Gtk.Align.START)
|
||||||
text.set_text(label)
|
text.set_text(label)
|
||||||
grid.attach(text, 1, index, 8, 1)
|
grid.attach(text, 1, index, 8, 1)
|
||||||
|
|
||||||
@ -1339,7 +1339,7 @@ class GrampsPreferences(ConfigureDialog):
|
|||||||
checkbutton.connect("toggled", self.toggle_hide_previous_addons)
|
checkbutton.connect("toggled", self.toggle_hide_previous_addons)
|
||||||
|
|
||||||
grid.attach(checkbutton, 1, current_line, 1, 1)
|
grid.attach(checkbutton, 1, current_line, 1, 1)
|
||||||
button = Gtk.Button(_("Check now"))
|
button = Gtk.Button(label=_("Check now"))
|
||||||
button.connect("clicked", self.check_for_updates)
|
button.connect("clicked", self.check_for_updates)
|
||||||
grid.attach(button, 3, current_line, 1, 1)
|
grid.attach(button, 3, current_line, 1, 1)
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ class EditChildRef(EditSecondary):
|
|||||||
DdTargets.PERSON_LINK.target_flags,
|
DdTargets.PERSON_LINK.target_flags,
|
||||||
DdTargets.PERSON_LINK.app_id)
|
DdTargets.PERSON_LINK.app_id)
|
||||||
self.label_event_box.drag_source_set_target_list(tglist)
|
self.label_event_box.drag_source_set_target_list(tglist)
|
||||||
self.label_event_box.drag_source_set_icon_stock('gramps-person')
|
self.label_event_box.drag_source_set_icon_name('gramps-person')
|
||||||
self.label_event_box.connect('drag_data_get', self.drag_data_get)
|
self.label_event_box.connect('drag_data_get', self.drag_data_get)
|
||||||
|
|
||||||
def _setup_fields(self):
|
def _setup_fields(self):
|
||||||
|
@ -560,7 +560,7 @@ class EditFamily(EditPrimary):
|
|||||||
DdTargets.FAMILY_LINK.target_flags,
|
DdTargets.FAMILY_LINK.target_flags,
|
||||||
DdTargets.FAMILY_LINK.app_id)
|
DdTargets.FAMILY_LINK.app_id)
|
||||||
self.contexteventbox.drag_source_set_target_list(tglist)
|
self.contexteventbox.drag_source_set_target_list(tglist)
|
||||||
self.contexteventbox.drag_source_set_icon_stock('gramps-family')
|
self.contexteventbox.drag_source_set_icon_name('gramps-family')
|
||||||
self.contexteventbox.connect('drag_data_get', self.on_drag_data_get_family)
|
self.contexteventbox.connect('drag_data_get', self.on_drag_data_get_family)
|
||||||
|
|
||||||
def on_drag_data_get_family(self,widget, context, sel_data, info, time):
|
def on_drag_data_get_family(self,widget, context, sel_data, info, time):
|
||||||
@ -583,7 +583,7 @@ class EditFamily(EditPrimary):
|
|||||||
DdTargets.PERSON_LINK.target_flags,
|
DdTargets.PERSON_LINK.target_flags,
|
||||||
DdTargets.PERSON_LINK.app_id)
|
DdTargets.PERSON_LINK.app_id)
|
||||||
event_box.drag_source_set_target_list(tglist)
|
event_box.drag_source_set_target_list(tglist)
|
||||||
event_box.drag_source_set_icon_stock('gramps-person')
|
event_box.drag_source_set_icon_name('gramps-person')
|
||||||
event_box.connect('drag_data_get', on_drag_data_get)
|
event_box.connect('drag_data_get', on_drag_data_get)
|
||||||
#Disallow drop:
|
#Disallow drop:
|
||||||
if event_box.drag_dest_get_target_list():
|
if event_box.drag_dest_get_target_list():
|
||||||
|
@ -263,7 +263,7 @@ class EditPerson(EditPrimary):
|
|||||||
[],
|
[],
|
||||||
Gdk.DragAction.COPY)
|
Gdk.DragAction.COPY)
|
||||||
self.contexteventbox.drag_source_set_target_list(tglist)
|
self.contexteventbox.drag_source_set_target_list(tglist)
|
||||||
self.contexteventbox.drag_source_set_icon_stock('gramps-person')
|
self.contexteventbox.drag_source_set_icon_name('gramps-person')
|
||||||
self.contexteventbox.connect('drag_data_get', self._top_drag_data_get)
|
self.contexteventbox.connect('drag_data_get', self._top_drag_data_get)
|
||||||
|
|
||||||
def _connect_db_signals(self):
|
def _connect_db_signals(self):
|
||||||
|
@ -111,7 +111,7 @@ class EditPersonRef(EditSecondary):
|
|||||||
DdTargets.PERSON_LINK.target_flags,
|
DdTargets.PERSON_LINK.target_flags,
|
||||||
DdTargets.PERSON_LINK.app_id)
|
DdTargets.PERSON_LINK.app_id)
|
||||||
self.label_event_box.drag_source_set_target_list(tglist)
|
self.label_event_box.drag_source_set_target_list(tglist)
|
||||||
self.label_event_box.drag_source_set_icon_stock('gramps-person')
|
self.label_event_box.drag_source_set_icon_name('gramps-person')
|
||||||
self.label_event_box.connect('drag_data_get', self.drag_data_get)
|
self.label_event_box.connect('drag_data_get', self.drag_data_get)
|
||||||
else:
|
else:
|
||||||
self.label_event_box.drag_source_unset()
|
self.label_event_box.drag_source_unset()
|
||||||
|
@ -68,7 +68,7 @@ class EditPlaceName(ManagedWindow):
|
|||||||
self.set_window(window, None, _('Place Name Editor'))
|
self.set_window(window, None, _('Place Name Editor'))
|
||||||
|
|
||||||
hbox = Gtk.Box()
|
hbox = Gtk.Box()
|
||||||
label = Gtk.Label(_('Place Name:'))
|
label = Gtk.Label(label=_('Place Name:'))
|
||||||
self.entry = Gtk.Entry()
|
self.entry = Gtk.Entry()
|
||||||
if index >= 0:
|
if index >= 0:
|
||||||
self.entry.set_text(data[index])
|
self.entry.set_text(data[index])
|
||||||
|
@ -488,8 +488,7 @@ class EditRule(ManagedWindow):
|
|||||||
vallist = []
|
vallist = []
|
||||||
tlist = []
|
tlist = []
|
||||||
pos = 0
|
pos = 0
|
||||||
l2 = Gtk.Label(label=class_obj.name)
|
l2 = Gtk.Label(label=class_obj.name, halign=Gtk.Align.START)
|
||||||
l2.set_alignment(0, 0.5)
|
|
||||||
l2.show()
|
l2.show()
|
||||||
c = Gtk.TreeView()
|
c = Gtk.TreeView()
|
||||||
#c.set_data('d', pos)
|
#c.set_data('d', pos)
|
||||||
@ -501,8 +500,7 @@ class EditRule(ManagedWindow):
|
|||||||
grid.set_row_spacing(6)
|
grid.set_row_spacing(6)
|
||||||
grid.show()
|
grid.show()
|
||||||
for v in arglist:
|
for v in arglist:
|
||||||
l = Gtk.Label(label=v)
|
l = Gtk.Label(label=v, halign=Gtk.Align.END)
|
||||||
l.set_alignment(1, 0.5)
|
|
||||||
l.show()
|
l.show()
|
||||||
if v == _('Place:'):
|
if v == _('Place:'):
|
||||||
t = MyPlaces([])
|
t = MyPlaces([])
|
||||||
|
@ -167,7 +167,7 @@ class ObjEntry(object):
|
|||||||
self._DND_TYPE.app_id)
|
self._DND_TYPE.app_id)
|
||||||
self.label_event_box.drag_source_set_target_list(tglist)
|
self.label_event_box.drag_source_set_target_list(tglist)
|
||||||
if self._DND_ICON:
|
if self._DND_ICON:
|
||||||
self.label_event_box.drag_source_set_icon_stock(self._DND_ICON)
|
self.label_event_box.drag_source_set_icon_name(self._DND_ICON)
|
||||||
self.label_event_box.connect('drag_data_get', self.drag_data_get)
|
self.label_event_box.connect('drag_data_get', self.drag_data_get)
|
||||||
else:
|
else:
|
||||||
if self.label.drag_source_get_target_list():
|
if self.label.drag_source_get_target_list():
|
||||||
|
@ -135,7 +135,7 @@ class SidebarFilter(DbGUIElement):
|
|||||||
label = Gtk.Label()
|
label = Gtk.Label()
|
||||||
label.set_text('<b>%s</b>' % heading)
|
label.set_text('<b>%s</b>' % heading)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.set_alignment(0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
self.grid.attach(label, 1, self.position, 1, 1)
|
self.grid.attach(label, 1, self.position, 1, 1)
|
||||||
self.position += 1
|
self.position += 1
|
||||||
|
|
||||||
|
@ -265,7 +265,7 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
label = Gtk.Label(label=_("If you can see that there is any personal "
|
label = Gtk.Label(label=_("If you can see that there is any personal "
|
||||||
"information included in the error please remove "
|
"information included in the error please remove "
|
||||||
"it."))
|
"it."))
|
||||||
label.set_alignment(0.01, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_padding(0, 4)
|
label.set_padding(0, 4)
|
||||||
label.set_line_wrap(True)
|
label.set_line_wrap(True)
|
||||||
|
|
||||||
@ -310,7 +310,7 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
|
|
||||||
error_details_frame.add(error_details_box)
|
error_details_frame.add(error_details_box)
|
||||||
|
|
||||||
side_label = Gtk.Label(_("This is the detailed Gramps error "
|
side_label = Gtk.Label(label=_("This is the detailed Gramps error "
|
||||||
"information, don't worry if you do not "
|
"information, don't worry if you do not "
|
||||||
"understand it. You will have the opportunity "
|
"understand it. You will have the opportunity "
|
||||||
"to add further detail about the error "
|
"to add further detail about the error "
|
||||||
@ -340,11 +340,11 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
"""
|
"""
|
||||||
Build the system information page.
|
Build the system information page.
|
||||||
"""
|
"""
|
||||||
label = Gtk.Label(label=_("Please check the information below and correct "
|
label = Gtk.Label(label=_("Please check the information below and "
|
||||||
"anything that you know to be wrong or remove "
|
"correct anything that you know to be wrong or "
|
||||||
"anything that you would rather not have included "
|
"remove anything that you would rather not have "
|
||||||
"in the bug report."))
|
"included in the bug report."))
|
||||||
label.set_alignment(0.01, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_padding(0, 4)
|
label.set_padding(0, 4)
|
||||||
label.set_line_wrap(True)
|
label.set_line_wrap(True)
|
||||||
|
|
||||||
@ -390,9 +390,9 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
|
|
||||||
sys_information_frame.add(sys_information_box)
|
sys_information_frame.add(sys_information_box)
|
||||||
|
|
||||||
side_label = Gtk.Label(label=_("This is the information about your system "
|
side_label = Gtk.Label(label=_("This is the information about your "
|
||||||
"that will help the developers to fix the "
|
"system that will help the developers to fix "
|
||||||
"bug."))
|
"the bug."))
|
||||||
|
|
||||||
side_label.set_line_wrap(True)
|
side_label.set_line_wrap(True)
|
||||||
|
|
||||||
@ -418,10 +418,10 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
"""
|
"""
|
||||||
Build the further information page.
|
Build the further information page.
|
||||||
"""
|
"""
|
||||||
label = Gtk.Label(label=_("Please provide as much information as you can "
|
label = Gtk.Label(label=_("Please provide as much information as you "
|
||||||
"about what you were doing when the error "
|
"can about what you were doing when the error "
|
||||||
"occured."))
|
"occured."))
|
||||||
label.set_alignment(0.01, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_padding(0, 4)
|
label.set_padding(0, 4)
|
||||||
label.set_line_wrap(True)
|
label.set_line_wrap(True)
|
||||||
|
|
||||||
@ -462,8 +462,8 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
|
|
||||||
user_information_frame.add(user_information_box)
|
user_information_frame.add(user_information_box)
|
||||||
|
|
||||||
side_label = Gtk.Label(label=_("This is your opportunity to describe what "
|
side_label = Gtk.Label(label=_("This is your opportunity to describe "
|
||||||
"you were doing when the error occured."))
|
"what you were doing when the error occured."))
|
||||||
|
|
||||||
side_label.set_line_wrap(True)
|
side_label.set_line_wrap(True)
|
||||||
|
|
||||||
@ -489,12 +489,12 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
"""
|
"""
|
||||||
Build the bug report summary page.
|
Build the bug report summary page.
|
||||||
"""
|
"""
|
||||||
label = Gtk.Label(_("Please check that the information is correct, "
|
label = Gtk.Label(label=_("Please check that the information is "
|
||||||
"do not worry if you don't understand the detail "
|
"correct, do not worry if you don't understand the "
|
||||||
"of the error information. Just make sure that it "
|
"detail of the error information. Just make sure "
|
||||||
"does not contain anything that you do not want "
|
"that it does not contain anything that you do not "
|
||||||
"to be sent to the developers."))
|
"want to be sent to the developers."))
|
||||||
label.set_alignment(0.01, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_padding(0, 4)
|
label.set_padding(0, 4)
|
||||||
label.set_line_wrap(True)
|
label.set_line_wrap(True)
|
||||||
|
|
||||||
@ -526,10 +526,10 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
|
|
||||||
summary_frame.add(summary_box)
|
summary_frame.add(summary_box)
|
||||||
|
|
||||||
side_label = Gtk.Label(label=_("This is the completed bug report. The next "
|
side_label = Gtk.Label(label=_("This is the completed bug report. "
|
||||||
"page of the assistant will help you to file "
|
"The next page of the assistant will help you "
|
||||||
"a bug on the Gramps bug tracking system "
|
"to file a bug on the Gramps bug tracking "
|
||||||
"website."))
|
"system website."))
|
||||||
|
|
||||||
side_label.set_line_wrap(True)
|
side_label.set_line_wrap(True)
|
||||||
|
|
||||||
@ -560,16 +560,16 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
(_("Use the two buttons below to first copy the bug report to the "
|
(_("Use the two buttons below to first copy the bug report to the "
|
||||||
"clipboard and then open a webbrowser to file a bug report at "),
|
"clipboard and then open a webbrowser to file a bug report at "),
|
||||||
URL_BUGTRACKER))
|
URL_BUGTRACKER))
|
||||||
label.set_alignment(0.01, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_padding(0, 4)
|
label.set_padding(0, 4)
|
||||||
label.set_line_wrap(True)
|
label.set_line_wrap(True)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
|
|
||||||
|
|
||||||
url_label = Gtk.Label(label=_("Use this button to start a web browser and "
|
url_label = Gtk.Label(label=_("Use this button to start a web browser "
|
||||||
"file a bug report on the Gramps bug tracking "
|
"and file a bug report on the Gramps bug "
|
||||||
"system."))
|
"tracking system."))
|
||||||
url_label.set_alignment(0.01, 0.5)
|
url_label.set_halign(Gtk.Align.START)
|
||||||
url_label.set_padding(0, 4)
|
url_label.set_padding(0, 4)
|
||||||
url_label.set_line_wrap(True)
|
url_label.set_line_wrap(True)
|
||||||
url_label.set_size_request(200, -1)
|
url_label.set_size_request(200, -1)
|
||||||
@ -588,12 +588,12 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
url_frame = Gtk.Frame()
|
url_frame = Gtk.Frame()
|
||||||
url_frame.add(url_box)
|
url_frame.add(url_box)
|
||||||
|
|
||||||
clip_label = Gtk.Label(_("Use this button "
|
clip_label = Gtk.Label(label=_("Use this button "
|
||||||
"to copy the bug report onto the clipboard. "
|
"to copy the bug report onto the clipboard. "
|
||||||
"Then go to the bug tracking website by using "
|
"Then go to the bug tracking website by using "
|
||||||
"the button below, paste the report and click "
|
"the button below, paste the report and click "
|
||||||
"submit report"))
|
"submit report"))
|
||||||
clip_label.set_alignment(0.01, 0.5)
|
clip_label.set_halign(Gtk.Align.START)
|
||||||
clip_label.set_padding(0, 4)
|
clip_label.set_padding(0, 4)
|
||||||
clip_label.set_line_wrap(True)
|
clip_label.set_line_wrap(True)
|
||||||
clip_label.set_size_request(200, -1)
|
clip_label.set_size_request(200, -1)
|
||||||
@ -625,10 +625,10 @@ class ErrorReportAssistant(Gtk.Assistant):
|
|||||||
|
|
||||||
outer_frame.add(inner_box)
|
outer_frame.add(inner_box)
|
||||||
|
|
||||||
side_label = Gtk.Label(label=_("This is the final step. Use the buttons on "
|
side_label = Gtk.Label(label=_("This is the final step. Use the "
|
||||||
"this page to start a web browser and file a "
|
"buttons on this page to start a web browser "
|
||||||
"bug report on the Gramps bug tracking "
|
"and file a bug report on the Gramps bug "
|
||||||
"system."))
|
"tracking system."))
|
||||||
|
|
||||||
side_label.set_line_wrap(True)
|
side_label.set_line_wrap(True)
|
||||||
|
|
||||||
|
@ -617,7 +617,7 @@ class GuiPersonOption(Gtk.Box):
|
|||||||
self.__uistate = uistate
|
self.__uistate = uistate
|
||||||
self.__track = track
|
self.__track = track
|
||||||
self.__person_label = Gtk.Label()
|
self.__person_label = Gtk.Label()
|
||||||
self.__person_label.set_alignment(0.0, 0.5)
|
self.__person_label.set_halign(Gtk.Align.START)
|
||||||
|
|
||||||
pevt = Gtk.EventBox()
|
pevt = Gtk.EventBox()
|
||||||
pevt.add(self.__person_label)
|
pevt.add(self.__person_label)
|
||||||
@ -742,7 +742,7 @@ class GuiFamilyOption(Gtk.Box):
|
|||||||
self.__uistate = uistate
|
self.__uistate = uistate
|
||||||
self.__track = track
|
self.__track = track
|
||||||
self.__family_label = Gtk.Label()
|
self.__family_label = Gtk.Label()
|
||||||
self.__family_label.set_alignment(0.0, 0.5)
|
self.__family_label.set_halign(Gtk.Align.START)
|
||||||
|
|
||||||
pevt = Gtk.EventBox()
|
pevt = Gtk.EventBox()
|
||||||
pevt.add(self.__family_label)
|
pevt.add(self.__family_label)
|
||||||
@ -931,7 +931,7 @@ class GuiNoteOption(Gtk.Box):
|
|||||||
self.__uistate = uistate
|
self.__uistate = uistate
|
||||||
self.__track = track
|
self.__track = track
|
||||||
self.__note_label = Gtk.Label()
|
self.__note_label = Gtk.Label()
|
||||||
self.__note_label.set_alignment(0.0, 0.5)
|
self.__note_label.set_halign(Gtk.Align.START)
|
||||||
|
|
||||||
pevt = Gtk.EventBox()
|
pevt = Gtk.EventBox()
|
||||||
pevt.add(self.__note_label)
|
pevt.add(self.__note_label)
|
||||||
@ -1035,7 +1035,7 @@ class GuiMediaOption(Gtk.Box):
|
|||||||
self.__uistate = uistate
|
self.__uistate = uistate
|
||||||
self.__track = track
|
self.__track = track
|
||||||
self.__media_label = Gtk.Label()
|
self.__media_label = Gtk.Label()
|
||||||
self.__media_label.set_alignment(0.0, 0.5)
|
self.__media_label.set_halign(Gtk.Align.START)
|
||||||
|
|
||||||
pevt = Gtk.EventBox()
|
pevt = Gtk.EventBox()
|
||||||
pevt.add(self.__media_label)
|
pevt.add(self.__media_label)
|
||||||
|
@ -138,18 +138,18 @@ class PluginStatus(ManagedWindow):
|
|||||||
vbox_reg.pack_start(scrolled_window_reg, True, True, 0)
|
vbox_reg.pack_start(scrolled_window_reg, True, True, 0)
|
||||||
hbutbox = Gtk.ButtonBox()
|
hbutbox = Gtk.ButtonBox()
|
||||||
hbutbox.set_layout(Gtk.ButtonBoxStyle.SPREAD)
|
hbutbox.set_layout(Gtk.ButtonBoxStyle.SPREAD)
|
||||||
self.__info_btn = Gtk.Button(_("Info"))
|
self.__info_btn = Gtk.Button(label=_("Info"))
|
||||||
hbutbox.add(self.__info_btn)
|
hbutbox.add(self.__info_btn)
|
||||||
self.__info_btn.connect('clicked', self.__info, self.list_reg, 4) # id_col
|
self.__info_btn.connect('clicked', self.__info, self.list_reg, 4) # id_col
|
||||||
self.__hide_btn = Gtk.Button(_("Hide/Unhide"))
|
self.__hide_btn = Gtk.Button(label=_("Hide/Unhide"))
|
||||||
hbutbox.add(self.__hide_btn)
|
hbutbox.add(self.__hide_btn)
|
||||||
self.__hide_btn.connect('clicked', self.__hide,
|
self.__hide_btn.connect('clicked', self.__hide,
|
||||||
self.list_reg, 4, 1) # list, id_col, hide_col
|
self.list_reg, 4, 1) # list, id_col, hide_col
|
||||||
if __debug__:
|
if __debug__:
|
||||||
self.__edit_btn = Gtk.Button(_("Edit"))
|
self.__edit_btn = Gtk.Button(label=_("Edit"))
|
||||||
hbutbox.add(self.__edit_btn)
|
hbutbox.add(self.__edit_btn)
|
||||||
self.__edit_btn.connect('clicked', self.__edit, self.list_reg, 4) # id_col
|
self.__edit_btn.connect('clicked', self.__edit, self.list_reg, 4) # id_col
|
||||||
self.__load_btn = Gtk.Button(_("Load"))
|
self.__load_btn = Gtk.Button(label=_("Load"))
|
||||||
hbutbox.add(self.__load_btn)
|
hbutbox.add(self.__load_btn)
|
||||||
self.__load_btn.connect('clicked', self.__load, self.list_reg, 4) # id_col
|
self.__load_btn.connect('clicked', self.__load, self.list_reg, 4) # id_col
|
||||||
vbox_reg.pack_start(hbutbox, False, False, 0)
|
vbox_reg.pack_start(hbutbox, False, False, 0)
|
||||||
@ -192,19 +192,19 @@ class PluginStatus(ManagedWindow):
|
|||||||
vbox_loaded.pack_start(scrolled_window, True, True, 0)
|
vbox_loaded.pack_start(scrolled_window, True, True, 0)
|
||||||
hbutbox = Gtk.ButtonBox()
|
hbutbox = Gtk.ButtonBox()
|
||||||
hbutbox.set_layout(Gtk.ButtonBoxStyle.SPREAD)
|
hbutbox.set_layout(Gtk.ButtonBoxStyle.SPREAD)
|
||||||
self.__info_btn = Gtk.Button(_("Info"))
|
self.__info_btn = Gtk.Button(label=_("Info"))
|
||||||
hbutbox.add(self.__info_btn)
|
hbutbox.add(self.__info_btn)
|
||||||
self.__info_btn.connect('clicked', self.__info, self.list, 4) # id_col
|
self.__info_btn.connect('clicked', self.__info, self.list, 4) # id_col
|
||||||
self.__hide_btn = Gtk.Button(_("Hide/Unhide"))
|
self.__hide_btn = Gtk.Button(label=_("Hide/Unhide"))
|
||||||
hbutbox.add(self.__hide_btn)
|
hbutbox.add(self.__hide_btn)
|
||||||
self.__hide_btn.connect('clicked', self.__hide,
|
self.__hide_btn.connect('clicked', self.__hide,
|
||||||
self.list, 4, 5) # list, id_col, hide_col
|
self.list, 4, 5) # list, id_col, hide_col
|
||||||
|
|
||||||
if __debug__:
|
if __debug__:
|
||||||
self.__edit_btn = Gtk.Button(_("Edit"))
|
self.__edit_btn = Gtk.Button(label=_("Edit"))
|
||||||
hbutbox.add(self.__edit_btn)
|
hbutbox.add(self.__edit_btn)
|
||||||
self.__edit_btn.connect('clicked', self.__edit, self.list, 4) # id_col
|
self.__edit_btn.connect('clicked', self.__edit, self.list, 4) # id_col
|
||||||
self.__load_btn = Gtk.Button(_("Load"))
|
self.__load_btn = Gtk.Button(label=_("Load"))
|
||||||
self.__load_btn.set_sensitive(False)
|
self.__load_btn.set_sensitive(False)
|
||||||
hbutbox.add(self.__load_btn)
|
hbutbox.add(self.__load_btn)
|
||||||
self.__load_btn.connect('clicked', self.__load, self.list, 4) # id_col
|
self.__load_btn.connect('clicked', self.__load, self.list, 4) # id_col
|
||||||
@ -264,13 +264,13 @@ class PluginStatus(ManagedWindow):
|
|||||||
|
|
||||||
hbutbox = Gtk.ButtonBox()
|
hbutbox = Gtk.ButtonBox()
|
||||||
hbutbox.set_layout(Gtk.ButtonBoxStyle.SPREAD)
|
hbutbox.set_layout(Gtk.ButtonBoxStyle.SPREAD)
|
||||||
self.__add_btn = Gtk.Button(_("Install Addon"))
|
self.__add_btn = Gtk.Button(label=_("Install Addon"))
|
||||||
hbutbox.add(self.__add_btn)
|
hbutbox.add(self.__add_btn)
|
||||||
self.__add_btn.connect('clicked', self.__get_addon_top)
|
self.__add_btn.connect('clicked', self.__get_addon_top)
|
||||||
self.__add_all_btn = Gtk.Button(_("Install All Addons"))
|
self.__add_all_btn = Gtk.Button(label=_("Install All Addons"))
|
||||||
hbutbox.add(self.__add_all_btn)
|
hbutbox.add(self.__add_all_btn)
|
||||||
self.__add_all_btn.connect('clicked', self.__get_all_addons)
|
self.__add_all_btn.connect('clicked', self.__get_all_addons)
|
||||||
self.__refresh_btn = Gtk.Button(_("Refresh Addon List"))
|
self.__refresh_btn = Gtk.Button(label=_("Refresh Addon List"))
|
||||||
hbutbox.add(self.__refresh_btn)
|
hbutbox.add(self.__refresh_btn)
|
||||||
self.__refresh_btn.connect('clicked', self.__refresh_addon_list)
|
self.__refresh_btn.connect('clicked', self.__refresh_addon_list)
|
||||||
install_page.pack_start(hbutbox, False, True, 5)
|
install_page.pack_start(hbutbox, False, True, 5)
|
||||||
@ -283,7 +283,7 @@ class PluginStatus(ManagedWindow):
|
|||||||
if __debug__:
|
if __debug__:
|
||||||
# Only show the "Reload" button when in debug mode
|
# Only show the "Reload" button when in debug mode
|
||||||
# (without -O on the command line)
|
# (without -O on the command line)
|
||||||
self.__reload_btn = Gtk.Button(_("Reload"))
|
self.__reload_btn = Gtk.Button(label=_("Reload"))
|
||||||
self.window.action_area.add(self.__reload_btn)
|
self.window.action_area.add(self.__reload_btn)
|
||||||
self.__reload_btn.connect('clicked', self.__reload)
|
self.__reload_btn.connect('clicked', self.__reload)
|
||||||
|
|
||||||
@ -1003,7 +1003,7 @@ class ToolManagedWindowBase(ManagedWindow):
|
|||||||
widget.set_hexpand(True)
|
widget.set_hexpand(True)
|
||||||
if text:
|
if text:
|
||||||
text_widget = Gtk.Label(label='%s:' % text)
|
text_widget = Gtk.Label(label='%s:' % text)
|
||||||
text_widget.set_alignment(0.0, 0.5)
|
text_widget.set_halign(Gtk.Align.START)
|
||||||
grid.attach(text_widget, 1, row, 1, 1)
|
grid.attach(text_widget, 1, row, 1, 1)
|
||||||
grid.attach(widget, 2, row, 1, 1)
|
grid.attach(widget, 2, row, 1, 1)
|
||||||
else:
|
else:
|
||||||
|
@ -144,7 +144,8 @@ class WriterOptionBox(object):
|
|||||||
widget = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
widget = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||||
|
|
||||||
full_database_row = Gtk.Box()
|
full_database_row = Gtk.Box()
|
||||||
full_database_row.pack_start(Gtk.Label(_("Unfiltered Family Tree:")), True, True, 0)
|
label = Gtk.Label(label=_("Unfiltered Family Tree:"))
|
||||||
|
full_database_row.pack_start(label, True, True, 0)
|
||||||
people_count = len(self.dbstate.db.get_person_handles())
|
people_count = len(self.dbstate.db.get_person_handles())
|
||||||
# translators: leave all/any {...} untranslated
|
# translators: leave all/any {...} untranslated
|
||||||
button = Gtk.Button(ngettext("{number_of} Person",
|
button = Gtk.Button(ngettext("{number_of} Person",
|
||||||
@ -177,12 +178,12 @@ class WriterOptionBox(object):
|
|||||||
row += 1
|
row += 1
|
||||||
|
|
||||||
hbox = Gtk.Box()
|
hbox = Gtk.Box()
|
||||||
self.advanced_button = Gtk.Button(_("Change order"))
|
self.advanced_button = Gtk.Button(label=_("Change order"))
|
||||||
self.advanced_button.set_size_request(150, -1)
|
self.advanced_button.set_size_request(150, -1)
|
||||||
self.proxy_options_showing = False
|
self.proxy_options_showing = False
|
||||||
self.advanced_button.connect("clicked", self.show_options)
|
self.advanced_button.connect("clicked", self.show_options)
|
||||||
hbox.pack_end(self.advanced_button, False, True, 0)
|
hbox.pack_end(self.advanced_button, False, True, 0)
|
||||||
self.preview_button = Gtk.Button(_("Calculate Previews"))
|
self.preview_button = Gtk.Button(label=_("Calculate Previews"))
|
||||||
self.preview_button.connect("clicked", self.preview)
|
self.preview_button.connect("clicked", self.preview)
|
||||||
hbox.pack_end(self.preview_button, False, True, 0)
|
hbox.pack_end(self.preview_button, False, True, 0)
|
||||||
widget.pack_start(hbox, False, True, 0)
|
widget.pack_start(hbox, False, True, 0)
|
||||||
@ -263,7 +264,7 @@ class WriterOptionBox(object):
|
|||||||
# Frame Person:
|
# Frame Person:
|
||||||
self.filter_obj = Gtk.ComboBox()
|
self.filter_obj = Gtk.ComboBox()
|
||||||
label = Gtk.Label(label=_('_Person Filter') + ": ")
|
label = Gtk.Label(label=_('_Person Filter') + ": ")
|
||||||
label.set_alignment(0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_size_request(150, -1)
|
label.set_size_request(150, -1)
|
||||||
label.set_use_underline(True)
|
label.set_use_underline(True)
|
||||||
label.set_mnemonic_widget(self.filter_obj)
|
label.set_mnemonic_widget(self.filter_obj)
|
||||||
@ -280,7 +281,7 @@ class WriterOptionBox(object):
|
|||||||
# Objects for choosing a Note filter:
|
# Objects for choosing a Note filter:
|
||||||
self.filter_note = Gtk.ComboBox()
|
self.filter_note = Gtk.ComboBox()
|
||||||
label_note = Gtk.Label(label=_('_Note Filter') + ": ")
|
label_note = Gtk.Label(label=_('_Note Filter') + ": ")
|
||||||
label_note.set_alignment(0, 0.5)
|
label_note.set_halign(Gtk.Align.START)
|
||||||
label_note.set_size_request(150, -1)
|
label_note.set_size_request(150, -1)
|
||||||
label_note.set_use_underline(True)
|
label_note.set_use_underline(True)
|
||||||
label_note.set_mnemonic_widget(self.filter_note)
|
label_note.set_mnemonic_widget(self.filter_note)
|
||||||
@ -295,7 +296,7 @@ class WriterOptionBox(object):
|
|||||||
elif proxy_name == "privacy":
|
elif proxy_name == "privacy":
|
||||||
# Frame 3:
|
# Frame 3:
|
||||||
label = Gtk.Label(label=_("Privacy Filter") + ":")
|
label = Gtk.Label(label=_("Privacy Filter") + ":")
|
||||||
label.set_alignment(0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_size_request(150, -1)
|
label.set_size_request(150, -1)
|
||||||
box = Gtk.Box()
|
box = Gtk.Box()
|
||||||
box.pack_start(label, False, True, 0)
|
box.pack_start(label, False, True, 0)
|
||||||
@ -304,7 +305,7 @@ class WriterOptionBox(object):
|
|||||||
elif proxy_name == "living":
|
elif proxy_name == "living":
|
||||||
# Frame 4:
|
# Frame 4:
|
||||||
label = Gtk.Label(label=_("Living Filter") + ":")
|
label = Gtk.Label(label=_("Living Filter") + ":")
|
||||||
label.set_alignment(0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_size_request(150, -1)
|
label.set_size_request(150, -1)
|
||||||
box = Gtk.Box()
|
box = Gtk.Box()
|
||||||
box.pack_start(label, False, True, 0)
|
box.pack_start(label, False, True, 0)
|
||||||
@ -315,7 +316,7 @@ class WriterOptionBox(object):
|
|||||||
# Frame 5:
|
# Frame 5:
|
||||||
self.reference_filter = Gtk.ComboBox()
|
self.reference_filter = Gtk.ComboBox()
|
||||||
label = Gtk.Label(label=_('Reference Filter') + ": ")
|
label = Gtk.Label(label=_('Reference Filter') + ": ")
|
||||||
label.set_alignment(0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_size_request(150, -1)
|
label.set_size_request(150, -1)
|
||||||
box = Gtk.Box()
|
box = Gtk.Box()
|
||||||
box.pack_start(label, False, True, 0)
|
box.pack_start(label, False, True, 0)
|
||||||
|
@ -168,7 +168,7 @@ class DocReportDialog(ReportDialog):
|
|||||||
self.make_doc_menu(self.options.handler.get_format_name())
|
self.make_doc_menu(self.options.handler.get_format_name())
|
||||||
self.format_menu.connect('changed', self.doc_type_changed)
|
self.format_menu.connect('changed', self.doc_type_changed)
|
||||||
label = Gtk.Label(label="%s:" % _("Output Format"))
|
label = Gtk.Label(label="%s:" % _("Output Format"))
|
||||||
label.set_alignment(0.0, 0.5)
|
label.set_set_halign(Gtk.Align.START)
|
||||||
self.grid.attach(label, 1, self.row, 1, 1)
|
self.grid.attach(label, 1, self.row, 1, 1)
|
||||||
self.format_menu.set_hexpand(True)
|
self.format_menu.set_hexpand(True)
|
||||||
self.grid.attach(self.format_menu, 2, self.row, 2, 1)
|
self.grid.attach(self.format_menu, 2, self.row, 2, 1)
|
||||||
@ -214,7 +214,7 @@ class DocReportDialog(ReportDialog):
|
|||||||
self.html_grid.set_border_width(6)
|
self.html_grid.set_border_width(6)
|
||||||
|
|
||||||
label = Gtk.Label(label="%s:" % _("CSS file"))
|
label = Gtk.Label(label="%s:" % _("CSS file"))
|
||||||
label.set_alignment(0.0,0.5)
|
label.set_set_halign(Gtk.Align.START)
|
||||||
self.html_grid.attach(label, 1, 1, 1, 1)
|
self.html_grid.attach(label, 1, 1, 1, 1)
|
||||||
|
|
||||||
self.css_combo = Gtk.ComboBoxText()
|
self.css_combo = Gtk.ComboBoxText()
|
||||||
|
@ -148,7 +148,7 @@ class GraphvizReportDialog(ReportDialog):
|
|||||||
self.format_menu.set(self.options.handler.get_format_name())
|
self.format_menu.set(self.options.handler.get_format_name())
|
||||||
self.format_menu.connect('changed', self.doc_type_changed)
|
self.format_menu.connect('changed', self.doc_type_changed)
|
||||||
label = Gtk.Label(label="%s:" % _("Output Format"))
|
label = Gtk.Label(label="%s:" % _("Output Format"))
|
||||||
label.set_alignment(0.0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
self.grid.attach(label, 1, self.row, 1, 1)
|
self.grid.attach(label, 1, self.row, 1, 1)
|
||||||
self.format_menu.set_hexpand(True)
|
self.format_menu.set_hexpand(True)
|
||||||
self.grid.attach(self.format_menu, 2, self.row, 2, 1)
|
self.grid.attach(self.format_menu, 2, self.row, 2, 1)
|
||||||
|
@ -318,7 +318,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
|
|
||||||
# Styles Frame
|
# Styles Frame
|
||||||
label = Gtk.Label(label="%s:" % _("Style"))
|
label = Gtk.Label(label="%s:" % _("Style"))
|
||||||
label.set_alignment(0.0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
|
|
||||||
self.style_menu = StyleComboBox()
|
self.style_menu = StyleComboBox()
|
||||||
self.style_menu.set_hexpand(True)
|
self.style_menu.set_hexpand(True)
|
||||||
@ -361,7 +361,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
grid.set_row_spacing(6)
|
grid.set_row_spacing(6)
|
||||||
|
|
||||||
label = Gtk.Label(label="<b>%s</b>" % _("Report Options"))
|
label = Gtk.Label(label="<b>%s</b>" % _("Report Options"))
|
||||||
label.set_alignment(0.0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
|
|
||||||
self.notebook.append_page(grid, label)
|
self.notebook.append_page(grid, label)
|
||||||
@ -371,7 +371,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
widget.set_hexpand(True)
|
widget.set_hexpand(True)
|
||||||
if text:
|
if text:
|
||||||
text_widget = Gtk.Label(label="%s:" % text)
|
text_widget = Gtk.Label(label="%s:" % text)
|
||||||
text_widget.set_alignment(0.0, 0.0)
|
text_widget.set_halign(Gtk.Align.START)
|
||||||
grid.attach(text_widget, 1, row, 1, 1)
|
grid.attach(text_widget, 1, row, 1, 1)
|
||||||
grid.attach(widget, 2, row, 1, 1)
|
grid.attach(widget, 2, row, 1, 1)
|
||||||
else:
|
else:
|
||||||
@ -395,7 +395,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
widget.set_hexpand(True)
|
widget.set_hexpand(True)
|
||||||
if text:
|
if text:
|
||||||
text_widget = Gtk.Label(label='%s:' % text)
|
text_widget = Gtk.Label(label='%s:' % text)
|
||||||
text_widget.set_alignment(0.0, 0.5)
|
text_widget.set_halign(Gtk.Align.START)
|
||||||
grid.attach(text_widget, 1, row, 1, 1)
|
grid.attach(text_widget, 1, row, 1, 1)
|
||||||
if isinstance(widget, GuiTextOption):
|
if isinstance(widget, GuiTextOption):
|
||||||
grid.attach(widget, 2, row, 1, 1)
|
grid.attach(widget, 2, row, 1, 1)
|
||||||
@ -451,7 +451,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
# need any labels at top:
|
# need any labels at top:
|
||||||
label = Gtk.Label(label="<b>%s</b>" % _('Document Options'))
|
label = Gtk.Label(label="<b>%s</b>" % _('Document Options'))
|
||||||
label.set_use_markup(1)
|
label.set_use_markup(1)
|
||||||
label.set_alignment(0.0, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
self.grid.set_border_width(12)
|
self.grid.set_border_width(12)
|
||||||
self.grid.attach(label, 0, self.row, 4, 1)
|
self.grid.attach(label, 0, self.row, 4, 1)
|
||||||
self.row += 1
|
self.row += 1
|
||||||
@ -465,7 +465,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
|
|
||||||
# Save Frame
|
# Save Frame
|
||||||
self.doc_label = Gtk.Label(label="%s:" % _("Filename"))
|
self.doc_label = Gtk.Label(label="%s:" % _("Filename"))
|
||||||
self.doc_label.set_alignment(0.0, 0.5)
|
self.doc_label.set_halign(Gtk.Align.START)
|
||||||
|
|
||||||
self.grid.attach(self.doc_label, 1, self.row, 1, 1)
|
self.grid.attach(self.doc_label, 1, self.row, 1, 1)
|
||||||
self.target_fileentry.set_hexpand(True)
|
self.target_fileentry.set_hexpand(True)
|
||||||
@ -613,7 +613,7 @@ class ReportDialog(ManagedWindow):
|
|||||||
self.uistate, self.track)
|
self.uistate, self.track)
|
||||||
if has_label:
|
if has_label:
|
||||||
widget_text = Gtk.Label('%s:' % option.get_label())
|
widget_text = Gtk.Label('%s:' % option.get_label())
|
||||||
widget_text.set_alignment(0.0, 0.0)
|
widget_text.set_halign(Gtk.Align.START)
|
||||||
self.grid.attach(widget_text, 1, self.row, 1, 1)
|
self.grid.attach(widget_text, 1, self.row, 1, 1)
|
||||||
self.doc_widgets.append(widget_text)
|
self.doc_widgets.append(widget_text)
|
||||||
self.grid.attach(widget, 2, self.row, 2, 1)
|
self.grid.attach(widget, 2, self.row, 2, 1)
|
||||||
|
@ -349,7 +349,7 @@ class StyleEditor(object):
|
|||||||
|
|
||||||
for i in range(t.get_columns()):
|
for i in range(t.get_columns()):
|
||||||
hbox = Gtk.Box()
|
hbox = Gtk.Box()
|
||||||
label = Gtk.Label(_('Column %d:') % (i + 1))
|
label = Gtk.Label(label=_('Column %d:') % (i + 1))
|
||||||
hbox.pack_start(label, False, False, 6)
|
hbox.pack_start(label, False, False, 6)
|
||||||
spin = Gtk.SpinButton()
|
spin = Gtk.SpinButton()
|
||||||
spin.set_range(0, 100)
|
spin.set_range(0, 100)
|
||||||
|
@ -1228,7 +1228,7 @@ class ViewManager(CLIManager):
|
|||||||
label = Gtk.Label(label=_("Path:"))
|
label = Gtk.Label(label=_("Path:"))
|
||||||
label.set_justify(Gtk.Justification.LEFT)
|
label.set_justify(Gtk.Justification.LEFT)
|
||||||
label.set_size_request(90, -1)
|
label.set_size_request(90, -1)
|
||||||
label.set_alignment(0, .5)
|
label.set_halign(Gtk.Align.START)
|
||||||
hbox.pack_start(label, False, True, 0)
|
hbox.pack_start(label, False, True, 0)
|
||||||
path_entry = Gtk.Entry()
|
path_entry = Gtk.Entry()
|
||||||
text = config.get('paths.quick-backup-directory')
|
text = config.get('paths.quick-backup-directory')
|
||||||
@ -1248,7 +1248,7 @@ class ViewManager(CLIManager):
|
|||||||
label = Gtk.Label(label=_("File:"))
|
label = Gtk.Label(label=_("File:"))
|
||||||
label.set_justify(Gtk.Justification.LEFT)
|
label.set_justify(Gtk.Justification.LEFT)
|
||||||
label.set_size_request(90, -1)
|
label.set_size_request(90, -1)
|
||||||
label.set_alignment(0, .5)
|
label.set_halign(Gtk.Align.START)
|
||||||
hbox.pack_start(label, False, True, 0)
|
hbox.pack_start(label, False, True, 0)
|
||||||
struct_time = time.localtime()
|
struct_time = time.localtime()
|
||||||
file_entry.set_text(config.get('paths.quick-backup-filename') %
|
file_entry.set_text(config.get('paths.quick-backup-filename') %
|
||||||
@ -1280,7 +1280,7 @@ class ViewManager(CLIManager):
|
|||||||
label = Gtk.Label(label=_("Media:"))
|
label = Gtk.Label(label=_("Media:"))
|
||||||
label.set_justify(Gtk.Justification.LEFT)
|
label.set_justify(Gtk.Justification.LEFT)
|
||||||
label.set_size_request(90, -1)
|
label.set_size_request(90, -1)
|
||||||
label.set_alignment(0, .5)
|
label.set_halign(Gtk.Align.START)
|
||||||
hbox.pack_start(label, False, True, 0)
|
hbox.pack_start(label, False, True, 0)
|
||||||
include = Gtk.RadioButton(None, "%s (%s %s)" % (_("Include"),
|
include = Gtk.RadioButton(None, "%s (%s %s)" % (_("Include"),
|
||||||
mbytes, _("Megabyte|MB")))
|
mbytes, _("Megabyte|MB")))
|
||||||
|
@ -1005,7 +1005,7 @@ class ListView(NavigationView):
|
|||||||
|
|
||||||
combobox = Gtk.ComboBoxText()
|
combobox = Gtk.ComboBoxText()
|
||||||
label = Gtk.Label(label=_("Format:"))
|
label = Gtk.Label(label=_("Format:"))
|
||||||
label.set_alignment(1.0, 0.5)
|
label.set_halign(Gtk.Align.END)
|
||||||
box = Gtk.Box()
|
box = Gtk.Box()
|
||||||
box.pack_start(label, True, True, padding=12)
|
box.pack_start(label, True, True, padding=12)
|
||||||
box.pack_start(combobox, False, False, 0)
|
box.pack_start(combobox, False, False, 0)
|
||||||
|
@ -30,7 +30,7 @@ TreeModel for the GRAMPS Person tree.
|
|||||||
# Standard python modules
|
# Standard python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import cgi
|
from html import escape
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -290,7 +290,7 @@ class PeopleBaseModel(object):
|
|||||||
else:
|
else:
|
||||||
date_str = get_date(birth)
|
date_str = get_date(birth)
|
||||||
if date_str != "":
|
if date_str != "":
|
||||||
retval = cgi.escape(date_str)
|
retval = escape(date_str)
|
||||||
if not get_date_valid(birth):
|
if not get_date_valid(birth):
|
||||||
return invalid_date_format % retval
|
return invalid_date_format % retval
|
||||||
else:
|
else:
|
||||||
@ -310,7 +310,7 @@ class PeopleBaseModel(object):
|
|||||||
if sort_mode:
|
if sort_mode:
|
||||||
retval = "%09d" % event.get_date_object().get_sort_value()
|
retval = "%09d" % event.get_date_object().get_sort_value()
|
||||||
else:
|
else:
|
||||||
retval = "<i>%s</i>" % cgi.escape(date_str)
|
retval = "<i>%s</i>" % escape(date_str)
|
||||||
if not get_date_valid(event):
|
if not get_date_valid(event):
|
||||||
return invalid_date_format % retval
|
return invalid_date_format % retval
|
||||||
else:
|
else:
|
||||||
@ -345,7 +345,7 @@ class PeopleBaseModel(object):
|
|||||||
else:
|
else:
|
||||||
date_str = get_date(event)
|
date_str = get_date(event)
|
||||||
if date_str != "":
|
if date_str != "":
|
||||||
retval = cgi.escape(date_str)
|
retval = escape(date_str)
|
||||||
if not get_date_valid(event):
|
if not get_date_valid(event):
|
||||||
return invalid_date_format % retval
|
return invalid_date_format % retval
|
||||||
else:
|
else:
|
||||||
@ -367,7 +367,7 @@ class PeopleBaseModel(object):
|
|||||||
if sort_mode:
|
if sort_mode:
|
||||||
retval = "%09d" % event.get_date_object().get_sort_value()
|
retval = "%09d" % event.get_date_object().get_sort_value()
|
||||||
else:
|
else:
|
||||||
retval = "<i>%s</i>" % cgi.escape(date_str)
|
retval = "<i>%s</i>" % escape(date_str)
|
||||||
if not get_date_valid(event):
|
if not get_date_valid(event):
|
||||||
return invalid_date_format % retval
|
return invalid_date_format % retval
|
||||||
else:
|
else:
|
||||||
@ -385,7 +385,7 @@ class PeopleBaseModel(object):
|
|||||||
if event:
|
if event:
|
||||||
place_title = place_displayer.display_event(self.db, event)
|
place_title = place_displayer.display_event(self.db, event)
|
||||||
if place_title:
|
if place_title:
|
||||||
return cgi.escape(place_title)
|
return escape(place_title)
|
||||||
except:
|
except:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
@ -399,7 +399,7 @@ class PeopleBaseModel(object):
|
|||||||
|
|
||||||
place_title = place_displayer.display_event(self.db, event)
|
place_title = place_displayer.display_event(self.db, event)
|
||||||
if place_title:
|
if place_title:
|
||||||
return "<i>%s</i>" % cgi.escape(place_title)
|
return "<i>%s</i>" % escape(place_title)
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
def column_death_place(self, data):
|
def column_death_place(self, data):
|
||||||
@ -413,7 +413,7 @@ class PeopleBaseModel(object):
|
|||||||
if event:
|
if event:
|
||||||
place_title = place_displayer.display_event(self.db, event)
|
place_title = place_displayer.display_event(self.db, event)
|
||||||
if place_title:
|
if place_title:
|
||||||
return cgi.escape(place_title)
|
return escape(place_title)
|
||||||
except:
|
except:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
@ -428,7 +428,7 @@ class PeopleBaseModel(object):
|
|||||||
|
|
||||||
place_title = place_displayer.display_event(self.db, event)
|
place_title = place_displayer.display_event(self.db, event)
|
||||||
if place_title:
|
if place_title:
|
||||||
return "<i>%s</i>" % cgi.escape(place_title)
|
return "<i>%s</i>" % escape(place_title)
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
def _get_parents_data(self, data):
|
def _get_parents_data(self, data):
|
||||||
|
@ -964,7 +964,7 @@ class FanChartBaseWidget(Gtk.DrawingArea):
|
|||||||
def on_drag_begin(self, widget, data):
|
def on_drag_begin(self, widget, data):
|
||||||
"""Set up some inital conditions for drag. Set up icon."""
|
"""Set up some inital conditions for drag. Set up icon."""
|
||||||
self.in_drag = True
|
self.in_drag = True
|
||||||
self.drag_source_set_icon_stock('gramps-person')
|
self.drag_source_set_icon_name('gramps-person')
|
||||||
|
|
||||||
def on_drag_end(self, widget, data):
|
def on_drag_end(self, widget, data):
|
||||||
"""Set up some inital conditions for drag. Set up icon."""
|
"""Set up some inital conditions for drag. Set up icon."""
|
||||||
@ -1715,7 +1715,7 @@ class FanChartGrampsGUI(object):
|
|||||||
sib_item.set_image(go_image)
|
sib_item.set_image(go_image)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0,0)
|
label.set_halign(Gtk.Align.START)
|
||||||
sib_item.add(label)
|
sib_item.add(label)
|
||||||
linked_persons.append(sib_id)
|
linked_persons.append(sib_id)
|
||||||
sib_item.connect("activate", self.on_childmenu_changed, sib_id)
|
sib_item.connect("activate", self.on_childmenu_changed, sib_id)
|
||||||
@ -1752,7 +1752,7 @@ class FanChartGrampsGUI(object):
|
|||||||
child_item.set_image(go_image)
|
child_item.set_image(go_image)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0,0)
|
label.set_halign(Gtk.Align.START)
|
||||||
child_item.add(label)
|
child_item.add(label)
|
||||||
linked_persons.append(child_handle)
|
linked_persons.append(child_handle)
|
||||||
child_item.connect("activate", self.on_childmenu_changed, child_handle)
|
child_item.connect("activate", self.on_childmenu_changed, child_handle)
|
||||||
@ -1789,7 +1789,7 @@ class FanChartGrampsGUI(object):
|
|||||||
par_item.set_image(go_image)
|
par_item.set_image(go_image)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0,0)
|
label.set_halign(Gtk.Align.START)
|
||||||
par_item.add(label)
|
par_item.add(label)
|
||||||
linked_persons.append(par_id)
|
linked_persons.append(par_id)
|
||||||
par_item.connect("activate", self.on_childmenu_changed, par_id)
|
par_item.connect("activate", self.on_childmenu_changed, par_id)
|
||||||
@ -1832,7 +1832,7 @@ class FanChartGrampsGUI(object):
|
|||||||
per_item.set_image(go_image)
|
per_item.set_image(go_image)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0, 0)
|
label.set_halign(Gtk.Align.START)
|
||||||
per_item.add(label)
|
per_item.add(label)
|
||||||
per_item.connect("activate", self.on_childmenu_changed, p_id)
|
per_item.connect("activate", self.on_childmenu_changed, p_id)
|
||||||
per_item.show()
|
per_item.show()
|
||||||
|
@ -341,7 +341,7 @@ class GrampletBar(Gtk.Notebook):
|
|||||||
tab_label.show()
|
tab_label.show()
|
||||||
msg = _('Select the down arrow on the right corner for adding, removing or restoring gramplets.')
|
msg = _('Select the down arrow on the right corner for adding, removing or restoring gramplets.')
|
||||||
content = Gtk.Label(label=msg)
|
content = Gtk.Label(label=msg)
|
||||||
content.set_alignment(0, 0)
|
content.set_halign(Gtk.Align.START)
|
||||||
content.set_line_wrap(True)
|
content.set_line_wrap(True)
|
||||||
content.set_size_request(150, -1)
|
content.set_size_request(150, -1)
|
||||||
content.show()
|
content.show()
|
||||||
|
@ -569,7 +569,7 @@ class GuiGramplet(object):
|
|||||||
topbox.pack_start(hbox, False, False, 0)
|
topbox.pack_start(hbox, False, False, 0)
|
||||||
for item in self.pui.option_order:
|
for item in self.pui.option_order:
|
||||||
label = Gtk.Label(label=item + ":")
|
label = Gtk.Label(label=item + ":")
|
||||||
label.set_alignment(1.0, 0.5)
|
label.set_halign(Gtk.Align.END)
|
||||||
labels.pack_start(label, True, True, 0)
|
labels.pack_start(label, True, True, 0)
|
||||||
options.pack_start(self.pui.option_dict[item][0], True, True, 0) # widget
|
options.pack_start(self.pui.option_dict[item][0], True, True, 0) # widget
|
||||||
save_button = Gtk.Button.new_with_mnemonic(_('_Save'))
|
save_button = Gtk.Button.new_with_mnemonic(_('_Save'))
|
||||||
|
@ -126,7 +126,7 @@ class LinkLabel(Gtk.EventBox):
|
|||||||
|
|
||||||
self.label = Gtk.Label(label=text)
|
self.label = Gtk.Label(label=text)
|
||||||
self.label.set_use_markup(True)
|
self.label.set_use_markup(True)
|
||||||
self.label.set_alignment(0, 0.5)
|
self.label.set_halign(Gtk.Align.START)
|
||||||
|
|
||||||
hbox = Gtk.Box()
|
hbox = Gtk.Box()
|
||||||
hbox.pack_start(self.label, False, False, 0)
|
hbox.pack_start(self.label, False, False, 0)
|
||||||
@ -205,7 +205,7 @@ class BasicLabel(Gtk.Label):
|
|||||||
|
|
||||||
def __init__(self, text, ellipsize=Pango.EllipsizeMode.NONE):
|
def __init__(self, text, ellipsize=Pango.EllipsizeMode.NONE):
|
||||||
GObject.GObject.__init__(self, label=text)
|
GObject.GObject.__init__(self, label=text)
|
||||||
self.set_alignment(0, 0.5)
|
self.set_halign(Gtk.Align.START)
|
||||||
self.set_ellipsize(ellipsize)
|
self.set_ellipsize(ellipsize)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
@ -218,7 +218,7 @@ class GenderLabel(Gtk.Label):
|
|||||||
|
|
||||||
def __init__(self, text):
|
def __init__(self, text):
|
||||||
GObject.GObject.__init__(self, label=text)
|
GObject.GObject.__init__(self, label=text)
|
||||||
self.set_alignment(0, 0.5)
|
self.set_halign(Gtk.Align.START)
|
||||||
if win():
|
if win():
|
||||||
pangoFont = Pango.FontDescription('Arial')
|
pangoFont = Pango.FontDescription('Arial')
|
||||||
self.override_font(pangoFont)
|
self.override_font(pangoFont)
|
||||||
@ -231,9 +231,9 @@ class GenderLabel(Gtk.Label):
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class MarkupLabel(Gtk.Label):
|
class MarkupLabel(Gtk.Label):
|
||||||
|
|
||||||
def __init__(self, text, x_align=0, y_align=0.5):
|
def __init__(self, text, halign=Gtk.Align.START):
|
||||||
GObject.GObject.__init__(self, label=text)
|
GObject.GObject.__init__(self, label=text)
|
||||||
self.set_alignment(x_align, y_align)
|
self.set_halign(halign)
|
||||||
self.set_use_markup(True)
|
self.set_use_markup(True)
|
||||||
self.show_all()
|
self.show_all()
|
||||||
|
|
||||||
@ -244,10 +244,10 @@ class MarkupLabel(Gtk.Label):
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
class DualMarkupLabel(Gtk.Box):
|
class DualMarkupLabel(Gtk.Box):
|
||||||
|
|
||||||
def __init__(self, text, alt, x_align=0, y_align=0.5):
|
def __init__(self, text, alt, halign=Gtk.Align.START):
|
||||||
Gtk.Box.__init__(self)
|
Gtk.Box.__init__(self)
|
||||||
label = Gtk.Label(label=text)
|
label = Gtk.Label(label=text)
|
||||||
label.set_alignment(x_align, y_align)
|
label.set_halign(halign)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
|
|
||||||
self.pack_start(label, False, False, 0)
|
self.pack_start(label, False, False, 0)
|
||||||
|
@ -833,7 +833,7 @@ class MonitoredTagList(object):
|
|||||||
self.all_tags.append((tag.get_handle(), tag.get_name()))
|
self.all_tags.append((tag.get_handle(), tag.get_name()))
|
||||||
|
|
||||||
self.label = label
|
self.label = label
|
||||||
self.label.set_alignment(0, 0.5)
|
self.label.set_halign(Gtk.Align.START)
|
||||||
self.label.set_ellipsize(Pango.EllipsizeMode.END)
|
self.label.set_ellipsize(Pango.EllipsizeMode.END)
|
||||||
image = Gtk.Image()
|
image = Gtk.Image()
|
||||||
image.set_from_icon_name('gramps-tag', Gtk.IconSize.MENU)
|
image.set_from_icon_name('gramps-tag', Gtk.IconSize.MENU)
|
||||||
|
@ -64,7 +64,7 @@ class Statusbar(Gtk.Box):
|
|||||||
self.__status.show()
|
self.__status.show()
|
||||||
|
|
||||||
self.__filter = Gtk.Label()
|
self.__filter = Gtk.Label()
|
||||||
self.__filter.set_alignment(1.0, 0.5)
|
self.__filter.set_halign(Gtk.Align.END)
|
||||||
self.__filter.show()
|
self.__filter.show()
|
||||||
|
|
||||||
self.pack_start(self.__warnbtn, False, True, 4)
|
self.pack_start(self.__warnbtn, False, True, 4)
|
||||||
|
@ -71,7 +71,7 @@ class AgeOnDateGramplet(Gramplet):
|
|||||||
label = Gtk.Label()
|
label = Gtk.Label()
|
||||||
label.set_text(_("Date") + ":")
|
label.set_text(_("Date") + ":")
|
||||||
self.entry = Gtk.Entry()
|
self.entry = Gtk.Entry()
|
||||||
button = Gtk.Button(_("Run"))
|
button = Gtk.Button(label=_("Run"))
|
||||||
button.connect("clicked", self.run)
|
button.connect("clicked", self.run)
|
||||||
##self.filter =
|
##self.filter =
|
||||||
hbox.pack_start(label, False, True, 0)
|
hbox.pack_start(label, False, True, 0)
|
||||||
|
@ -74,10 +74,10 @@ class PythonEvaluation(Gramplet):
|
|||||||
self.error = self.__add_text_view(_("Error"))
|
self.error = self.__add_text_view(_("Error"))
|
||||||
|
|
||||||
bbox = Gtk.ButtonBox()
|
bbox = Gtk.ButtonBox()
|
||||||
apply_button = Gtk.Button(_("Apply"))
|
apply_button = Gtk.Button(label=_("Apply"))
|
||||||
apply_button.connect('clicked', self.apply_clicked)
|
apply_button.connect('clicked', self.apply_clicked)
|
||||||
bbox.pack_start(apply_button, False, False, 6)
|
bbox.pack_start(apply_button, False, False, 6)
|
||||||
clear_button = Gtk.Button(_("Clear"))
|
clear_button = Gtk.Button(label=_("Clear"))
|
||||||
clear_button.connect('clicked', self.clear_clicked)
|
clear_button.connect('clicked', self.clear_clicked)
|
||||||
bbox.pack_start(clear_button, False, False, 6)
|
bbox.pack_start(clear_button, False, False, 6)
|
||||||
self.top.pack_start(bbox, False, False, 6)
|
self.top.pack_start(bbox, False, False, 6)
|
||||||
@ -90,9 +90,8 @@ class PythonEvaluation(Gramplet):
|
|||||||
"""
|
"""
|
||||||
Add a text view to the interface.
|
Add a text view to the interface.
|
||||||
"""
|
"""
|
||||||
label = Gtk.Label(name)
|
label = Gtk.Label(halign=Gtk.Align.START)
|
||||||
label.set_markup('<b>%s</b>' % name)
|
label.set_markup('<b>%s</b>' % name)
|
||||||
label.set_alignment(0, 0.5)
|
|
||||||
self.top.pack_start(label, False, False, 6)
|
self.top.pack_start(label, False, False, 6)
|
||||||
swin = Gtk.ScrolledWindow()
|
swin = Gtk.ScrolledWindow()
|
||||||
swin.set_shadow_type(Gtk.ShadowType.IN)
|
swin.set_shadow_type(Gtk.ShadowType.IN)
|
||||||
|
@ -76,8 +76,7 @@ class Leak(Gramplet):
|
|||||||
self.top = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
self.top = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||||
self.top.set_border_width(6)
|
self.top.set_border_width(6)
|
||||||
|
|
||||||
self.label = Gtk.Label()
|
self.label = Gtk.Label(halign=Gtk.Align.START)
|
||||||
self.label.set_alignment(0, 0.5)
|
|
||||||
self.top.pack_start(self.label, False, False, 6)
|
self.top.pack_start(self.label, False, False, 6)
|
||||||
|
|
||||||
self.scroll = Gtk.ScrolledWindow()
|
self.scroll = Gtk.ScrolledWindow()
|
||||||
@ -106,7 +105,7 @@ class Leak(Gramplet):
|
|||||||
self.top.pack_start(self.scroll, True, True, 6)
|
self.top.pack_start(self.scroll, True, True, 6)
|
||||||
|
|
||||||
bbox = Gtk.ButtonBox()
|
bbox = Gtk.ButtonBox()
|
||||||
apply_button = Gtk.Button(_("Refresh"))
|
apply_button = Gtk.Button(label=_("Refresh"))
|
||||||
apply_button.connect('clicked', self.apply_clicked)
|
apply_button.connect('clicked', self.apply_clicked)
|
||||||
bbox.pack_start(apply_button, False, False, 6)
|
bbox.pack_start(apply_button, False, False, 6)
|
||||||
self.top.pack_start(bbox, False, False, 6)
|
self.top.pack_start(bbox, False, False, 6)
|
||||||
|
@ -48,8 +48,7 @@ class PersonDetails(Gramplet):
|
|||||||
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||||
self.photo = Photo(self.uistate.screen_height() < 1000)
|
self.photo = Photo(self.uistate.screen_height() < 1000)
|
||||||
self.photo.show()
|
self.photo.show()
|
||||||
self.name = Gtk.Label()
|
self.name = Gtk.Label(halign=Gtk.Align.START)
|
||||||
self.name.set_alignment(0, 0)
|
|
||||||
self.name.override_font(Pango.FontDescription('sans bold 12'))
|
self.name.override_font(Pango.FontDescription('sans bold 12'))
|
||||||
vbox.pack_start(self.name, fill=True, expand=False, padding=7)
|
vbox.pack_start(self.name, fill=True, expand=False, padding=7)
|
||||||
self.grid = Gtk.Grid(orientation=Gtk.Orientation.VERTICAL)
|
self.grid = Gtk.Grid(orientation=Gtk.Orientation.VERTICAL)
|
||||||
@ -64,11 +63,10 @@ class PersonDetails(Gramplet):
|
|||||||
"""
|
"""
|
||||||
Add a row to the table.
|
Add a row to the table.
|
||||||
"""
|
"""
|
||||||
label = Gtk.Label(label=title + ':')
|
label = Gtk.Label(label=title + ':', halign=Gtk.Align.END,
|
||||||
label.set_alignment(1, 0)
|
valign=Gtk.Align.START)
|
||||||
label.show()
|
label.show()
|
||||||
value = Gtk.Label(label=value)
|
value = Gtk.Label(label=value, halign=Gtk.Align.START)
|
||||||
value.set_alignment(0, 0)
|
|
||||||
value.show()
|
value.show()
|
||||||
self.grid.add(label)
|
self.grid.add(label)
|
||||||
self.grid.attach_next_to(value, label, Gtk.PositionType.RIGHT, 1, 1)
|
self.grid.attach_next_to(value, label, Gtk.PositionType.RIGHT, 1, 1)
|
||||||
|
@ -43,8 +43,7 @@ class PlaceDetails(Gramplet):
|
|||||||
self.top = Gtk.Box()
|
self.top = Gtk.Box()
|
||||||
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||||
self.photo = Photo(self.uistate.screen_height() < 1000)
|
self.photo = Photo(self.uistate.screen_height() < 1000)
|
||||||
self.title = Gtk.Label()
|
self.title = Gtk.Label(halign=Gtk.Align.START)
|
||||||
self.title.set_alignment(0, 0)
|
|
||||||
self.title.override_font(Pango.FontDescription('sans bold 12'))
|
self.title.override_font(Pango.FontDescription('sans bold 12'))
|
||||||
vbox.pack_start(self.title, False, True, 7)
|
vbox.pack_start(self.title, False, True, 7)
|
||||||
self.grid = Gtk.Grid(orientation=Gtk.Orientation.VERTICAL)
|
self.grid = Gtk.Grid(orientation=Gtk.Orientation.VERTICAL)
|
||||||
@ -59,11 +58,10 @@ class PlaceDetails(Gramplet):
|
|||||||
"""
|
"""
|
||||||
Add a row to the table.
|
Add a row to the table.
|
||||||
"""
|
"""
|
||||||
label = Gtk.Label(label=title + ':')
|
label = Gtk.Label(label=title + ':', halign=Gtk.Align.END,
|
||||||
label.set_alignment(1, 0)
|
valign=Gtk.Align.START)
|
||||||
label.show()
|
label.show()
|
||||||
value = Gtk.Label(label=value)
|
value = Gtk.Label(label=value, halign=Gtk.Align.START)
|
||||||
value.set_alignment(0, 0)
|
|
||||||
value.show()
|
value.show()
|
||||||
self.grid.add(label)
|
self.grid.add(label)
|
||||||
self.grid.attach_next_to(value, label, Gtk.PositionType.RIGHT, 1, 1)
|
self.grid.attach_next_to(value, label, Gtk.PositionType.RIGHT, 1, 1)
|
||||||
|
@ -39,8 +39,7 @@ class RepositoryDetails(Gramplet):
|
|||||||
"""
|
"""
|
||||||
self.top = Gtk.Box()
|
self.top = Gtk.Box()
|
||||||
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
|
||||||
self.name = Gtk.Label()
|
self.name = Gtk.Label(halign=Gtk.Align.START)
|
||||||
self.name.set_alignment(0, 0)
|
|
||||||
self.name.override_font(Pango.FontDescription('sans bold 12'))
|
self.name.override_font(Pango.FontDescription('sans bold 12'))
|
||||||
vbox.pack_start(self.name, fill=True, expand=False, padding=7)
|
vbox.pack_start(self.name, fill=True, expand=False, padding=7)
|
||||||
self.grid = Gtk.Grid(orientation=Gtk.Orientation.VERTICAL)
|
self.grid = Gtk.Grid(orientation=Gtk.Orientation.VERTICAL)
|
||||||
@ -54,11 +53,10 @@ class RepositoryDetails(Gramplet):
|
|||||||
"""
|
"""
|
||||||
Add a row to the table.
|
Add a row to the table.
|
||||||
"""
|
"""
|
||||||
label = Gtk.Label(label=title + ':')
|
label = Gtk.Label(label=title + ':', halign=Gtk.Align.END,
|
||||||
label.set_alignment(1, 0)
|
valign=Gtk.Align.START)
|
||||||
label.show()
|
label.show()
|
||||||
value = Gtk.Label(label=value)
|
value = Gtk.Label(label=value, halign=Gtk.Align.START)
|
||||||
value.set_alignment(0, 0)
|
|
||||||
value.show()
|
value.show()
|
||||||
self.grid.add(label)
|
self.grid.add(label)
|
||||||
self.grid.attach_next_to(value, label, Gtk.PositionType.RIGHT, 1, 1)
|
self.grid.attach_next_to(value, label, Gtk.PositionType.RIGHT, 1, 1)
|
||||||
|
@ -62,16 +62,13 @@ class SoundGen(Gramplet):
|
|||||||
grid.set_border_width(6)
|
grid.set_border_width(6)
|
||||||
grid.set_row_spacing(6)
|
grid.set_row_spacing(6)
|
||||||
grid.set_column_spacing(20)
|
grid.set_column_spacing(20)
|
||||||
label1 = Gtk.Label(_("Name:"))
|
label1 = Gtk.Label(label=_("Name:"), halign=Gtk.Align.START)
|
||||||
label1.set_alignment(0, 0.5)
|
|
||||||
grid.attach(label1, 0, 0, 1, 1)
|
grid.attach(label1, 0, 0, 1, 1)
|
||||||
label2 = Gtk.Label(_("SoundEx code:"))
|
label2 = Gtk.Label(label=_("SoundEx code:"), halign=Gtk.Align.START)
|
||||||
label2.set_alignment(0, 0.5)
|
|
||||||
grid.attach(label2, 0, 1, 1, 1)
|
grid.attach(label2, 0, 1, 1, 1)
|
||||||
self.autocomp = Gtk.ComboBox.new_with_entry()
|
self.autocomp = Gtk.ComboBox.new_with_entry()
|
||||||
grid.attach(self.autocomp, 1, 0, 1, 1)
|
grid.attach(self.autocomp, 1, 0, 1, 1)
|
||||||
self.value = Gtk.Label()
|
self.value = Gtk.Label(halign=Gtk.Align.START)
|
||||||
self.value.set_alignment(0, 0.5)
|
|
||||||
grid.attach(self.value, 1, 1, 1, 1)
|
grid.attach(self.value, 1, 1, 1, 1)
|
||||||
self.name = self.autocomp.get_child()
|
self.name = self.autocomp.get_child()
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ class ToDo(Gramplet):
|
|||||||
self.right.set_tooltip_text(_('Next To Do note'))
|
self.right.set_tooltip_text(_('Next To Do note'))
|
||||||
self.right.set_sensitive(False)
|
self.right.set_sensitive(False)
|
||||||
hbox.pack_start(self.right, False, False, 0)
|
hbox.pack_start(self.right, False, False, 0)
|
||||||
self.edit = SimpleButton('gtk-edit' self.edit_clicked)
|
self.edit = SimpleButton('gtk-edit', self.edit_clicked)
|
||||||
self.edit.set_tooltip_text(_('Edit the selected To Do note'))
|
self.edit.set_tooltip_text(_('Edit the selected To Do note'))
|
||||||
self.edit.set_sensitive(False)
|
self.edit.set_sensitive(False)
|
||||||
hbox.pack_start(self.edit, False, False, 0)
|
hbox.pack_start(self.edit, False, False, 0)
|
||||||
|
@ -64,8 +64,7 @@ class ToDoGramplet(Gramplet):
|
|||||||
self.page = Gtk.Label()
|
self.page = Gtk.Label()
|
||||||
hbox.pack_end(self.page, False, False, 10)
|
hbox.pack_end(self.page, False, False, 10)
|
||||||
|
|
||||||
self.title = Gtk.Label()
|
self.title = Gtk.Label(halign=Gtk.Align.START)
|
||||||
self.title.set_alignment(0, 0)
|
|
||||||
self.title.set_line_wrap(True)
|
self.title.set_line_wrap(True)
|
||||||
|
|
||||||
scrolledwindow = Gtk.ScrolledWindow()
|
scrolledwindow = Gtk.ScrolledWindow()
|
||||||
|
@ -364,7 +364,7 @@ class GeneWebParser(object):
|
|||||||
|
|
||||||
def read_children_source_line(self,line,fields):
|
def read_children_source_line(self,line,fields):
|
||||||
csrc = self.get_or_create_source(self.decode(fields[1]))
|
csrc = self.get_or_create_source(self.decode(fields[1]))
|
||||||
self.current_child_source_handle = csrc
|
self.current_child_source_handle = csrc.handle
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def read_family_comment(self,line,fields):
|
def read_family_comment(self,line,fields):
|
||||||
|
@ -163,7 +163,6 @@ class CategorySidebar(BaseSidebar):
|
|||||||
# create the button
|
# create the button
|
||||||
button = Gtk.ToggleButton()
|
button = Gtk.ToggleButton()
|
||||||
button.set_relief(Gtk.ReliefStyle.NONE)
|
button.set_relief(Gtk.ReliefStyle.NONE)
|
||||||
button.set_alignment(0, 0.5)
|
|
||||||
self.buttons.append(button)
|
self.buttons.append(button)
|
||||||
|
|
||||||
# add the tooltip
|
# add the tooltip
|
||||||
|
@ -146,14 +146,12 @@ class DropdownSidebar(BaseSidebar):
|
|||||||
# create the button
|
# create the button
|
||||||
button = Gtk.ToggleButton()
|
button = Gtk.ToggleButton()
|
||||||
button.set_relief(Gtk.ReliefStyle.NONE)
|
button.set_relief(Gtk.ReliefStyle.NONE)
|
||||||
button.set_alignment(0, 0.5)
|
|
||||||
self.buttons.append(button)
|
self.buttons.append(button)
|
||||||
|
|
||||||
# create the drop-down button to display views
|
# create the drop-down button to display views
|
||||||
if len(self.views[cat_num]) > 1:
|
if len(self.views[cat_num]) > 1:
|
||||||
dropdown = Gtk.Button()
|
dropdown = Gtk.Button()
|
||||||
dropdown.set_relief(Gtk.ReliefStyle.NONE)
|
dropdown.set_relief(Gtk.ReliefStyle.NONE)
|
||||||
dropdown.set_alignment(0.5, 0.5)
|
|
||||||
arrow = Gtk.Arrow(arrow_type=Gtk.ArrowType.DOWN,
|
arrow = Gtk.Arrow(arrow_type=Gtk.ArrowType.DOWN,
|
||||||
shadow_type=Gtk.ShadowType.NONE)
|
shadow_type=Gtk.ShadowType.NONE)
|
||||||
dropdown.add(arrow)
|
dropdown.add(arrow)
|
||||||
|
@ -172,7 +172,6 @@ class ExpanderSidebar(BaseSidebar):
|
|||||||
# create the button
|
# create the button
|
||||||
button = Gtk.ToggleButton()
|
button = Gtk.ToggleButton()
|
||||||
button.set_relief(Gtk.ReliefStyle.NONE)
|
button.set_relief(Gtk.ReliefStyle.NONE)
|
||||||
button.set_alignment(0, 0.5)
|
|
||||||
self.buttons.append(button)
|
self.buttons.append(button)
|
||||||
self.lookup[(cat_num, view_num)] = len(self.buttons) - 1
|
self.lookup[(cat_num, view_num)] = len(self.buttons) - 1
|
||||||
|
|
||||||
|
@ -318,9 +318,9 @@ class ConfirmationPage(Gtk.Box):
|
|||||||
self.set_border_width(12)
|
self.set_border_width(12)
|
||||||
|
|
||||||
self.confirm = Gtk.Label()
|
self.confirm = Gtk.Label()
|
||||||
|
self.confirm.set_halign(Gtk.Align.START)
|
||||||
self.confirm.set_line_wrap(True)
|
self.confirm.set_line_wrap(True)
|
||||||
self.confirm.set_use_markup(True)
|
self.confirm.set_use_markup(True)
|
||||||
self.confirm.set_alignment(0, 0.5)
|
|
||||||
self.pack_start(self.confirm, False, True, 0)
|
self.pack_start(self.confirm, False, True, 0)
|
||||||
|
|
||||||
scrolled_window = Gtk.ScrolledWindow()
|
scrolled_window = Gtk.ScrolledWindow()
|
||||||
@ -336,8 +336,8 @@ class ConfirmationPage(Gtk.Box):
|
|||||||
scrolled_window.add(tree)
|
scrolled_window.add(tree)
|
||||||
self.pack_start(scrolled_window, True, True, 0)
|
self.pack_start(scrolled_window, True, True, 0)
|
||||||
|
|
||||||
label3 = Gtk.Label(_('Press Apply to proceed, Cancel to abort, '
|
label3 = Gtk.Label(label=_('Press Apply to proceed, Cancel to abort, '
|
||||||
'or Back to revisit your options.'))
|
'or Back to revisit your options.'))
|
||||||
self.pack_start(label3, False, True, 0)
|
self.pack_start(label3, False, True, 0)
|
||||||
|
|
||||||
def prepare(self, index):
|
def prepare(self, index):
|
||||||
@ -494,8 +494,8 @@ class PathChange(BatchOp):
|
|||||||
grid.attach(self.from_entry, 1, 0, 1, 1)
|
grid.attach(self.from_entry, 1, 0, 1, 1)
|
||||||
|
|
||||||
from_label = Gtk.Label(label=_('_Replace:'))
|
from_label = Gtk.Label(label=_('_Replace:'))
|
||||||
|
from_label.set_halign(Gtk.Align.START)
|
||||||
from_label.set_use_underline(True)
|
from_label.set_use_underline(True)
|
||||||
from_label.set_alignment(0, 0.5)
|
|
||||||
from_label.set_mnemonic_widget(self.from_entry)
|
from_label.set_mnemonic_widget(self.from_entry)
|
||||||
grid.attach(from_label, 0, 0, 1, 1)
|
grid.attach(from_label, 0, 0, 1, 1)
|
||||||
|
|
||||||
@ -504,8 +504,8 @@ class PathChange(BatchOp):
|
|||||||
grid.attach(self.to_entry, 1, 1, 1, 1)
|
grid.attach(self.to_entry, 1, 1, 1, 1)
|
||||||
|
|
||||||
to_label = Gtk.Label(label=_('_With:'))
|
to_label = Gtk.Label(label=_('_With:'))
|
||||||
|
to_label.set_halign(Gtk.Align.START)
|
||||||
to_label.set_use_underline(True)
|
to_label.set_use_underline(True)
|
||||||
to_label.set_alignment(0, 0.5)
|
|
||||||
to_label.set_mnemonic_widget(self.to_entry)
|
to_label.set_mnemonic_widget(self.to_entry)
|
||||||
grid.attach(to_label, 0, 1, 1, 1)
|
grid.attach(to_label, 0, 1, 1, 1)
|
||||||
|
|
||||||
|
@ -118,19 +118,22 @@ class PatchNames(tool.BatchTool, ManagedWindow):
|
|||||||
|
|
||||||
winprefix.vbox.set_spacing(5)
|
winprefix.vbox.set_spacing(5)
|
||||||
hboxpref = Gtk.Box()
|
hboxpref = Gtk.Box()
|
||||||
hboxpref.pack_start(Gtk.Label(_('Prefixes to search for:')), False, False, 5)
|
label = Gtk.Label(label=_('Prefixes to search for:'))
|
||||||
|
hboxpref.pack_start(label, False, False, 5)
|
||||||
self.prefixbox = Gtk.Entry()
|
self.prefixbox = Gtk.Entry()
|
||||||
self.prefixbox.set_text(', '.join(PREFIX_LIST))
|
self.prefixbox.set_text(', '.join(PREFIX_LIST))
|
||||||
hboxpref.pack_start(self.prefixbox, True, True, 0)
|
hboxpref.pack_start(self.prefixbox, True, True, 0)
|
||||||
winprefix.vbox.pack_start(hboxpref, True, True, 0)
|
winprefix.vbox.pack_start(hboxpref, True, True, 0)
|
||||||
hboxcon = Gtk.Box()
|
hboxcon = Gtk.Box()
|
||||||
hboxcon.pack_start(Gtk.Label(_('Connectors splitting surnames:')), False, False, 5)
|
label = Gtk.Label(label=_('Connectors splitting surnames:'))
|
||||||
|
hboxcon.pack_start(label, False, False, 5)
|
||||||
self.conbox = Gtk.Entry()
|
self.conbox = Gtk.Entry()
|
||||||
self.conbox.set_text(', '.join(CONNECTOR_LIST))
|
self.conbox.set_text(', '.join(CONNECTOR_LIST))
|
||||||
hboxcon.pack_start(self.conbox, True, True, 0)
|
hboxcon.pack_start(self.conbox, True, True, 0)
|
||||||
winprefix.vbox.pack_start(hboxcon, True, True, 0)
|
winprefix.vbox.pack_start(hboxcon, True, True, 0)
|
||||||
hboxconns = Gtk.Box()
|
hboxconns = Gtk.Box()
|
||||||
hboxconns.pack_start(Gtk.Label(_('Connectors not splitting surnames:')), False, False, 5)
|
label = Gtk.Label(label=_('Connectors not splitting surnames:'))
|
||||||
|
hboxconns.pack_start(label, False, False, 5)
|
||||||
self.connsbox = Gtk.Entry()
|
self.connsbox = Gtk.Entry()
|
||||||
self.connsbox.set_text(', '.join(CONNECTOR_LIST_NONSPLIT))
|
self.connsbox.set_text(', '.join(CONNECTOR_LIST_NONSPLIT))
|
||||||
hboxconns.pack_start(self.connsbox, True, True, 0)
|
hboxconns.pack_start(self.connsbox, True, True, 0)
|
||||||
|
@ -233,7 +233,7 @@ class TestcaseGenerator(tool.BatchTool):
|
|||||||
self.label = Gtk.Label(label=_("Number of people to generate\n"
|
self.label = Gtk.Label(label=_("Number of people to generate\n"
|
||||||
"(Number is approximate because families "
|
"(Number is approximate because families "
|
||||||
"are generated)"))
|
"are generated)"))
|
||||||
self.label.set_alignment(0.0, 0.5)
|
self.label.set_halign(Gtk.Align.START)
|
||||||
self.top.vbox.pack_start(self.label,0,0,5)
|
self.top.vbox.pack_start(self.label,0,0,5)
|
||||||
|
|
||||||
self.entry_count = Gtk.Entry()
|
self.entry_count = Gtk.Entry()
|
||||||
|
@ -120,7 +120,7 @@ class _PersonWidgetBase(Gtk.DrawingArea):
|
|||||||
def cb_drag_begin(self, widget, data):
|
def cb_drag_begin(self, widget, data):
|
||||||
"""Set up some inital conditions for drag. Set up icon."""
|
"""Set up some inital conditions for drag. Set up icon."""
|
||||||
self.in_drag = True
|
self.in_drag = True
|
||||||
self.drag_source_set_icon_stock('gramps-person')
|
self.drag_source_set_icon_name('gramps-person')
|
||||||
|
|
||||||
def cb_drag_end(self, widget, data):
|
def cb_drag_end(self, widget, data):
|
||||||
"""Set up some inital conditions for drag. Set up icon."""
|
"""Set up some inital conditions for drag. Set up icon."""
|
||||||
@ -1063,7 +1063,7 @@ class PedigreeView(NavigationView):
|
|||||||
label.set_justify(Gtk.Justification.LEFT)
|
label.set_justify(Gtk.Justification.LEFT)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.set_line_wrap(True)
|
label.set_line_wrap(True)
|
||||||
label.set_alignment(0.1, 0.5)
|
label.set_halign(Gtk.Align.START)
|
||||||
if self.tree_style in [0, 2]:
|
if self.tree_style in [0, 2]:
|
||||||
x_pos = (1 + _width) * (level + 1) + 1
|
x_pos = (1 + _width) * (level + 1) + 1
|
||||||
y_pos = _delta // 2 + offset * _delta -1 + _height // 2
|
y_pos = _delta // 2 + offset * _delta -1 + _height // 2
|
||||||
@ -1447,7 +1447,7 @@ class PedigreeView(NavigationView):
|
|||||||
label = Gtk.Label(label=cname)
|
label = Gtk.Label(label=cname)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0, 0)
|
label.set_halign(Gtk.Align.START)
|
||||||
menuitem = Gtk.ImageMenuItem()
|
menuitem = Gtk.ImageMenuItem()
|
||||||
go_image = Gtk.Image.new_from_icon_name('go-jump',
|
go_image = Gtk.Image.new_from_icon_name('go-jump',
|
||||||
Gtk.IconSize.MENU)
|
Gtk.IconSize.MENU)
|
||||||
@ -1724,7 +1724,7 @@ class PedigreeView(NavigationView):
|
|||||||
sib_item.set_image(go_image)
|
sib_item.set_image(go_image)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0, 0)
|
label.set_halign(Gtk.Align.START)
|
||||||
sib_item.add(label)
|
sib_item.add(label)
|
||||||
linked_persons.append(sib_id)
|
linked_persons.append(sib_id)
|
||||||
sib_item.connect("activate", self.cb_childmenu_changed, sib_id)
|
sib_item.connect("activate", self.cb_childmenu_changed, sib_id)
|
||||||
@ -1763,7 +1763,7 @@ class PedigreeView(NavigationView):
|
|||||||
child_item.set_image(go_image)
|
child_item.set_image(go_image)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0, 0)
|
label.set_halign(Gtk.Align.START)
|
||||||
child_item.add(label)
|
child_item.add(label)
|
||||||
linked_persons.append(child_handle)
|
linked_persons.append(child_handle)
|
||||||
child_item.connect("activate", self.cb_childmenu_changed,
|
child_item.connect("activate", self.cb_childmenu_changed,
|
||||||
@ -1803,7 +1803,7 @@ class PedigreeView(NavigationView):
|
|||||||
par_item.set_image(go_image)
|
par_item.set_image(go_image)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0, 0)
|
label.set_halign(Gtk.Align.START)
|
||||||
par_item.add(label)
|
par_item.add(label)
|
||||||
linked_persons.append(par_id)
|
linked_persons.append(par_id)
|
||||||
par_item.connect("activate", self.cb_childmenu_changed, par_id)
|
par_item.connect("activate", self.cb_childmenu_changed, par_id)
|
||||||
@ -1849,7 +1849,7 @@ class PedigreeView(NavigationView):
|
|||||||
per_item.set_image(go_image)
|
per_item.set_image(go_image)
|
||||||
label.set_use_markup(True)
|
label.set_use_markup(True)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0, 0)
|
label.set_halign(Gtk.Align.START)
|
||||||
per_item.add(label)
|
per_item.add(label)
|
||||||
per_item.connect("activate", self.cb_childmenu_changed, p_id)
|
per_item.connect("activate", self.cb_childmenu_changed, p_id)
|
||||||
per_item.show()
|
per_item.show()
|
||||||
|
@ -560,7 +560,7 @@ class RelationshipView(NavigationView):
|
|||||||
fmt = '<span size="larger" weight="bold">%s</span>'
|
fmt = '<span size="larger" weight="bold">%s</span>'
|
||||||
text = fmt % escape(name)
|
text = fmt % escape(name)
|
||||||
label = widgets.DualMarkupLabel(text, _GenderCode[person.gender],
|
label = widgets.DualMarkupLabel(text, _GenderCode[person.gender],
|
||||||
x_align=1)
|
halign=Gtk.Align.END)
|
||||||
if self._config.get('preferences.releditbtn'):
|
if self._config.get('preferences.releditbtn'):
|
||||||
button = widgets.IconButton(self.edit_button_press,
|
button = widgets.IconButton(self.edit_button_press,
|
||||||
person.handle)
|
person.handle)
|
||||||
@ -742,7 +742,7 @@ class RelationshipView(NavigationView):
|
|||||||
"""
|
"""
|
||||||
msg = '<span style="italic" weight="heavy">%s</span>' % escape(title)
|
msg = '<span style="italic" weight="heavy">%s</span>' % escape(title)
|
||||||
hbox = Gtk.Box()
|
hbox = Gtk.Box()
|
||||||
label = widgets.MarkupLabel(msg, x_align=1)
|
label = widgets.MarkupLabel(msg, halign=Gtk.Align.END)
|
||||||
# Draw the collapse/expand button:
|
# Draw the collapse/expand button:
|
||||||
if family is not None:
|
if family is not None:
|
||||||
if self.check_collapsed(person.handle, family.handle):
|
if self.check_collapsed(person.handle, family.handle):
|
||||||
@ -1013,7 +1013,7 @@ class RelationshipView(NavigationView):
|
|||||||
format = "%s"
|
format = "%s"
|
||||||
|
|
||||||
label = widgets.MarkupLabel(format % escape(title),
|
label = widgets.MarkupLabel(format % escape(title),
|
||||||
x_align=1, y_align=0)
|
halign=Gtk.Align.END)
|
||||||
if self._config.get('preferences.releditbtn'):
|
if self._config.get('preferences.releditbtn'):
|
||||||
label.set_padding(0, 5)
|
label.set_padding(0, 5)
|
||||||
|
|
||||||
@ -1050,7 +1050,7 @@ class RelationshipView(NavigationView):
|
|||||||
self._set_draggable_person(eventbox, handle)
|
self._set_draggable_person(eventbox, handle)
|
||||||
else:
|
else:
|
||||||
link_label = Gtk.Label(label=_('Unknown'))
|
link_label = Gtk.Label(label=_('Unknown'))
|
||||||
link_label.set_alignment(0, 1)
|
link_label.set_halign(Gtk.Align.START)
|
||||||
link_label.show()
|
link_label.show()
|
||||||
vbox.pack_start(link_label, True, True, 0)
|
vbox.pack_start(link_label, True, True, 0)
|
||||||
|
|
||||||
@ -1091,7 +1091,7 @@ class RelationshipView(NavigationView):
|
|||||||
dnd_type.target_flags,
|
dnd_type.target_flags,
|
||||||
dnd_type.app_id)
|
dnd_type.app_id)
|
||||||
eventbox.drag_source_set_target_list(tglist)
|
eventbox.drag_source_set_target_list(tglist)
|
||||||
eventbox.drag_source_set_icon_stock(stock_icon)
|
eventbox.drag_source_set_icon_name(stock_icon)
|
||||||
eventbox.connect('drag_data_get',
|
eventbox.connect('drag_data_get',
|
||||||
self._make_drag_data_get_func(object_h, dnd_type))
|
self._make_drag_data_get_func(object_h, dnd_type))
|
||||||
|
|
||||||
@ -1112,7 +1112,7 @@ class RelationshipView(NavigationView):
|
|||||||
format = "%s"
|
format = "%s"
|
||||||
|
|
||||||
lbl = widgets.MarkupLabel(format % escape(title),
|
lbl = widgets.MarkupLabel(format % escape(title),
|
||||||
x_align=1, y_align=.5)
|
halign=Gtk.Align.END)
|
||||||
if self._config.get('preferences.releditbtn'):
|
if self._config.get('preferences.releditbtn'):
|
||||||
lbl.set_padding(0, 5)
|
lbl.set_padding(0, 5)
|
||||||
return lbl
|
return lbl
|
||||||
@ -1174,7 +1174,7 @@ class RelationshipView(NavigationView):
|
|||||||
hbox = Gtk.Box()
|
hbox = Gtk.Box()
|
||||||
l = widgets.BasicLabel("%d." % index)
|
l = widgets.BasicLabel("%d." % index)
|
||||||
l.set_width_chars(3)
|
l.set_width_chars(3)
|
||||||
l.set_alignment(1.0, 0.5)
|
l.set_halign(Gtk.Align.END)
|
||||||
hbox.pack_start(l, False, False, 0)
|
hbox.pack_start(l, False, False, 0)
|
||||||
hbox.pack_start(widgets.LinkBox(link_label, button),
|
hbox.pack_start(widgets.LinkBox(link_label, button),
|
||||||
False, False, 4)
|
False, False, 4)
|
||||||
@ -1262,9 +1262,9 @@ class RelationshipView(NavigationView):
|
|||||||
if button_activated(event, _LEFT_BUTTON):
|
if button_activated(event, _LEFT_BUTTON):
|
||||||
self.change_active(handle)
|
self.change_active(handle)
|
||||||
elif button_activated(event, _RIGHT_BUTTON):
|
elif button_activated(event, _RIGHT_BUTTON):
|
||||||
myMenu = Gtk.Menu()
|
self.myMenu = Gtk.Menu()
|
||||||
myMenu.append(self.build_menu_item(handle))
|
self.myMenu.append(self.build_menu_item(handle))
|
||||||
myMenu.popup(None, None, None, None, event.button, event.time)
|
self.myMenu.popup(None, None, None, None, event.button, event.time)
|
||||||
|
|
||||||
def build_menu_item(self, handle):
|
def build_menu_item(self, handle):
|
||||||
person = self.dbstate.db.get_person_from_handle(handle)
|
person = self.dbstate.db.get_person_from_handle(handle)
|
||||||
@ -1275,7 +1275,7 @@ class RelationshipView(NavigationView):
|
|||||||
image.show()
|
image.show()
|
||||||
label = Gtk.Label(label=_("Edit %s") % name)
|
label = Gtk.Label(label=_("Edit %s") % name)
|
||||||
label.show()
|
label.show()
|
||||||
label.set_alignment(0, 0)
|
label.set_halign(Gtk.Align.START)
|
||||||
|
|
||||||
item.set_image(image)
|
item.set_image(image)
|
||||||
item.add(label)
|
item.add(label)
|
||||||
|
Loading…
Reference in New Issue
Block a user