Compare commits

...

6 Commits

10 changed files with 792 additions and 420 deletions

49
gramps/gui/editors/editfamily.py Normal file → Executable file
View File

@ -82,6 +82,9 @@ from gramps.gen.utils.id import create_id
from gramps.gen.const import URL_MANUAL_SECT1 from gramps.gen.const import URL_MANUAL_SECT1
from ..dbguielement import DbGUIElement from ..dbguielement import DbGUIElement
from gramps.gen.utils.file import media_path_full
from gramps.gui.widgets import Photo
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# Constants # Constants
@ -590,6 +593,9 @@ class EditFamily(EditPrimary):
self.mname = self.top.get_object('mname') self.mname = self.top.get_object('mname')
self.fname = self.top.get_object('fname') self.fname = self.top.get_object('fname')
self.mimg = self.top.get_object('mimg')
self.fimg = self.top.get_object('fimg')
self.mbutton_index = self.top.get_object('mbutton_index') self.mbutton_index = self.top.get_object('mbutton_index')
self.mbutton_add = self.top.get_object('mbutton_add') self.mbutton_add = self.top.get_object('mbutton_add')
self.mbutton_del = self.top.get_object('mbutton_del') self.mbutton_del = self.top.get_object('mbutton_del')
@ -803,7 +809,7 @@ class EditFamily(EditPrimary):
self.top.get_object('vbox').pack_start(notebook, True, True, 0) self.top.get_object('vbox').pack_start(notebook, True, True, 0)
def update_father(self, handle): def update_father(self, handle):
self.load_parent(handle, self.fname, self.fbirth, self.fbirth_label, self.load_parent(handle, self.fname, self.fimg, self.fbirth, self.fbirth_label,
self.fdeath, self.fdeath_label, self.fdeath, self.fdeath_label,
self.fbutton_index, self.fbutton_add, self.fbutton_index, self.fbutton_add,
self.fbutton_del, self.fbutton_edit) self.fbutton_del, self.fbutton_edit)
@ -813,7 +819,7 @@ class EditFamily(EditPrimary):
self.on_drag_fatherdata_received) self.on_drag_fatherdata_received)
def update_mother(self, handle): def update_mother(self, handle):
self.load_parent(handle, self.mname, self.mbirth, self.mbirth_label, self.load_parent(handle, self.mname, self.mimg, self.mbirth, self.mbirth_label,
self.mdeath, self.mdeath_label, self.mdeath, self.mdeath_label,
self.mbutton_index, self.mbutton_add, self.mbutton_index, self.mbutton_add,
self.mbutton_del, self.mbutton_edit) self.mbutton_del, self.mbutton_edit)
@ -975,7 +981,7 @@ class EditFamily(EditPrimary):
except WindowActiveError: except WindowActiveError:
pass pass
def load_parent(self, handle, name_obj, birth_obj, birth_label, death_obj, def load_parent(self, handle, name_obj, img_obj, birth_obj, birth_label, death_obj,
death_label, btn_index, btn_add, btn_del, btn_edit): death_label, btn_index, btn_add, btn_del, btn_edit):
# is a parent used here: # is a parent used here:
is_used = handle is not None is_used = handle is not None
@ -1006,6 +1012,9 @@ class EditFamily(EditPrimary):
btn_add.hide() btn_add.hide()
btn_del.show() btn_del.show()
btn_edit.show() btn_edit.show()
if img_obj:
load_person_image(self, person, img_obj)
else: else:
name = "" name = ""
birth = None birth = None
@ -1281,3 +1290,37 @@ def button_activated(event, mouse_button):
return True return True
else: else:
return False return False
def destroy_cb(widget, data):
"""
Callback for gtk_container_foreach
"""
widget.destroy()
def load_person_image(self, person, photo_container):
"""
Load the primary image if it exists.
"""
photo = Photo(True)
photo.show()
photo_container.foreach(destroy_cb, None)
photo_container.add(photo)
media_list = person.get_media_list()
if media_list:
media_ref = media_list[0]
object_handle = media_ref.get_reference_handle()
obj = self.dbstate.db.get_media_from_handle(object_handle)
full_path = media_path_full(self.dbstate.db, obj.get_path())
mime_type = obj.get_mime_type()
if mime_type and mime_type.startswith("image"):
photo.set_image(full_path, mime_type, media_ref.get_rectangle())
photo.set_uistate(self.uistate, object_handle)
else:
photo.set_image(None)
photo.set_uistate(None, None)
else:
photo.set_image(None)
photo.set_uistate(None, None)

View File

@ -51,8 +51,9 @@ from gramps.gen.const import THUMBSCALE
from gramps.gen.mime import get_description, get_type from gramps.gen.mime import get_description, get_type
from gramps.gen.utils.thumbnails import get_thumbnail_image, find_mime_type_pixbuf from gramps.gen.utils.thumbnails import get_thumbnail_image, find_mime_type_pixbuf
from gramps.gen.utils.file import (media_path_full, find_file, create_checksum) from gramps.gen.utils.file import (media_path_full, find_file, create_checksum)
from gramps.gen.lib import NoteType from gramps.gen.lib import NoteType, Attribute
from gramps.gen.db import DbTxn from gramps.gen.db import DbTxn
from .objectentries import PlaceEntry
from ..glade import Glade from ..glade import Glade
from .displaytabs import (CitationEmbedList, MediaAttrEmbedList, MediaBackRefList, from .displaytabs import (CitationEmbedList, MediaAttrEmbedList, MediaBackRefList,
NoteTab) NoteTab)
@ -276,6 +277,13 @@ class EditMediaRef(EditReference):
self.uistate, self.track, self.uistate, self.track,
self.db.readonly) self.db.readonly)
self.place = PlaceEntry(self.dbstate, self.uistate, self.track,
self.top.get_object("place"),
self.top.get_object("place_event_box"),
self.set_place_handle,
self.get_place_handle,
self.top.get_object("add_del_place"), self.top.get_object("select_place"))
self.tags = MonitoredTagList( self.tags = MonitoredTagList(
self.top.get_object("tag_label"), self.top.get_object("tag_label"),
self.top.get_object("tag_button"), self.top.get_object("tag_button"),
@ -517,6 +525,23 @@ class EditMediaRef(EditReference):
self._setup_notebook_tabs(notebook_src) self._setup_notebook_tabs(notebook_src)
self._setup_notebook_tabs(notebook_ref) self._setup_notebook_tabs(notebook_ref)
def get_place_handle(self):
for attr in self.source.get_attribute_list():
if attr.get_type() == "Place":
return attr.get_value()
return None
def set_place_handle(self, value):
for attr in self.source.get_attribute_list():
if attr.get_type() == "Place":
attr.set_value(value)
return
attr = Attribute()
attr.set_type("Place")
attr.set_value(value)
self.source.get_attribute_list().append(attr)
def save(self,*obj): def save(self,*obj):
#first save primary object #first save primary object

36
gramps/gui/editors/editperson.py Normal file → Executable file
View File

@ -42,7 +42,6 @@ import pickle
from gi.repository import Gtk from gi.repository import Gtk
from gi.repository import Gdk from gi.repository import Gdk
from gi.repository import Pango from gi.repository import Pango
from gi.repository.GLib import markup_escape_text
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -59,6 +58,8 @@ from gramps.gen.lib import NoteType, Person, Surname
from gramps.gen.db import DbTxn from gramps.gen.db import DbTxn
from .. import widgets from .. import widgets
from gramps.gen.display.name import displayer as name_displayer from gramps.gen.display.name import displayer as name_displayer
from gramps.gen.lib.date import Date, Today
from gramps.gen.datehandler import displayer as date_displayer
from gramps.gen.errors import WindowActiveError from gramps.gen.errors import WindowActiveError
from ..glade import Glade from ..glade import Glade
from ..ddtargets import DdTargets from ..ddtargets import DdTargets
@ -79,6 +80,8 @@ from gramps.gen.plug import CATEGORY_QR_PERSON
from gramps.gen.const import URL_MANUAL_SECT1 from gramps.gen.const import URL_MANUAL_SECT1
from gramps.gen.utils.id import create_id from gramps.gen.utils.id import create_id
from datetime import date
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# Constants # Constants
@ -240,7 +243,7 @@ class EditPerson(EditPrimary):
self.define_ok_button(self.top.get_object("ok"), self.save) self.define_ok_button(self.top.get_object("ok"), self.save)
self.define_help_button(self.top.get_object("button134"), self.define_help_button(self.top.get_object("button134"),
WIKI_HELP_PAGE, WIKI_HELP_PAGE,
_('Editing_information_about_people', 'manual')) _('manual|Editing_information_about_people'))
self.given.connect("focus-out-event", self._given_focus_out_event) self.given.connect("focus-out-event", self._given_focus_out_event)
self.top.get_object("editnamebtn").connect("clicked", self.top.get_object("editnamebtn").connect("clicked",
@ -436,10 +439,28 @@ class EditPerson(EditPrimary):
obj.connect('changed', self._changed_name) obj.connect('changed', self._changed_name)
self.preview_name = self.top.get_object("full_name") self.preview_name = self.top.get_object("full_name")
self.preview_name.override_font(Pango.FontDescription('sans bold 12'))
self.surntab = SurnameTab(self.dbstate, self.uistate, self.track, self.surntab = SurnameTab(self.dbstate, self.uistate, self.track,
self.obj.get_primary_name(), self.obj.get_primary_name(),
on_change=self._changed_name) on_change=self._changed_name)
# BEGIN: Added by Michael J Becker 2020-09-23 02:25:48 -0500 >>> _setup_fields(self)
self.age_label = self.top.get_object("age_label")
self.age_label.set_label("Age: %s" % self.get_age())
def get_age(self):
"""
Get the age of the person formatted as a string, if possible.
"""
age_precision = config.get('preferences.age-display-precision')
thedate = Today()
if thedate and self.get_start_date():
return (thedate - self.get_start_date()).format(precision=age_precision)
else:
return ""
# END: Added by Michael J Becker 2020-09-23 02:25:48 -0500 <<< get_start_date(self)
def get_start_date(self): def get_start_date(self):
""" """
Get the start date for a person, usually a birth date, or Get the start date for a person, usually a birth date, or
@ -550,9 +571,7 @@ class EditPerson(EditPrimary):
Update the window title, and default name in name tab Update the window title, and default name in name tab
""" """
self.update_title(self.get_menu_title()) self.update_title(self.get_menu_title())
self.preview_name.set_markup( self.preview_name.set_text(self.get_preview_name())
"<span size='x-large' weight='bold'>%s</span>" %
markup_escape_text(self.get_preview_name(), -1))
self.name_list.update_defname() self.name_list.update_defname()
def name_callback(self): def name_callback(self):
@ -640,6 +659,7 @@ class EditPerson(EditPrimary):
""" """
self.imgmenu = Gtk.Menu() self.imgmenu = Gtk.Menu()
menu = self.imgmenu menu = self.imgmenu
menu.set_title(_("Media Object"))
obj = self.db.get_media_from_handle(photo.get_reference_handle()) obj = self.db.get_media_from_handle(photo.get_reference_handle())
if obj: if obj:
add_menuitem(menu, _("View"), photo, add_menuitem(menu, _("View"), photo,
@ -1087,9 +1107,9 @@ class EditPerson(EditPrimary):
class GenderDialog(Gtk.MessageDialog): class GenderDialog(Gtk.MessageDialog):
def __init__(self, parent=None): def __init__(self, parent=None):
Gtk.MessageDialog.__init__(self, Gtk.MessageDialog.__init__(self,
transient_for=parent, parent,
modal=True, flags=Gtk.DialogFlags.MODAL,
message_type=Gtk.MessageType.QUESTION, type=Gtk.MessageType.QUESTION,
) )
self.set_icon(ICON) self.set_icon(ICON)
self.set_title('') self.set_title('')

View File

@ -56,6 +56,7 @@ from ..glade import Glade
from ..ddtargets import DdTargets from ..ddtargets import DdTargets
from gi.repository import Gdk from gi.repository import Gdk
from gramps.gen.const import URL_MANUAL_SECT1 from gramps.gen.const import URL_MANUAL_SECT1
from ..display import display_url
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -94,6 +95,7 @@ class EditPersonRef(EditSecondary):
self.setup_configs('interface.person-ref', 600, 350) self.setup_configs('interface.person-ref', 600, 350)
self.person_label = self.top.get_object('person') self.person_label = self.top.get_object('person')
self.person_label.set_use_markup(True)
#allow for drop: #allow for drop:
self.person_label.drag_dest_set(Gtk.DestDefaults.MOTION | self.person_label.drag_dest_set(Gtk.DestDefaults.MOTION |
@ -101,6 +103,7 @@ class EditPersonRef(EditSecondary):
[DdTargets.PERSON_LINK.target()], [DdTargets.PERSON_LINK.target()],
Gdk.DragAction.COPY) Gdk.DragAction.COPY)
self.person_label.connect('drag_data_received', self.on_drag_persondata_received) self.person_label.connect('drag_data_received', self.on_drag_persondata_received)
self.person_label.connect('activate_link', self.on_person_label_activate_link)
self._update_dnd_capability() self._update_dnd_capability()
def _update_dnd_capability(self): def _update_dnd_capability(self):
@ -119,7 +122,8 @@ class EditPersonRef(EditSecondary):
if self.obj.ref: if self.obj.ref:
p = self.dbstate.db.get_person_from_handle(self.obj.ref) p = self.dbstate.db.get_person_from_handle(self.obj.ref)
self.person_label.set_text(name_displayer.display(p)) self.person_label.set_markup("<a href='gramps://Person/handle/" + p.get_handle() + "'>" + name_displayer.display(p) + "</a>")
# self.person_label.set_text(name_displayer.display(p))
self.street = MonitoredEntry( self.street = MonitoredEntry(
self.top.get_object("relationship"), self.top.get_object("relationship"),
@ -166,9 +170,41 @@ class EditPersonRef(EditSecondary):
def update_person(self, person): def update_person(self, person):
if person: if person:
self.obj.ref = person.get_handle() self.obj.ref = person.get_handle()
self.person_label.set_text(name_displayer.display(person)) self.person_label.set_markup("<a href='gramps://Person/handle/" + person.get_handle() + "'>" + name_displayer.display(person) + "</a>")
self._update_dnd_capability() self._update_dnd_capability()
def find_parent_with_attr(self, attr="dbstate"):
"""
"""
# Find a parent with attr:
obj = self
while obj:
if hasattr(obj, attr):
break
obj = obj.get_parent()
return obj
def on_person_label_activate_link(self, widget, uri):
"""
Handle the standard gtk interface for activate_link.
"""
# this is stupid
if uri.startswith("gramps://"):
# if in a window:
win_obj = self.find_parent_with_attr(attr="dbstate")
if win_obj:
# Edit the object:
obj_class, prop, value = uri[9:].split("/")
from ..editors import EditObject
EditObject(win_obj.dbstate,
win_obj.uistate,
win_obj.track,
obj_class, prop, value)
return
display_url(uri)
def on_drag_persondata_received(self, widget, context, x, y, sel_data, def on_drag_persondata_received(self, widget, context, x, y, sel_data,
info, time): info, time):
""" """

427
gramps/gui/glade/editfamily.glade Normal file → Executable file
View File

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 --> <!-- Generated with glade 3.38.2 -->
<interface> <interface>
<requires lib="gtk+" version="3.10"/> <requires lib="gtk+" version="3.10"/>
<requires lib="grampswidgets" version="0.0"/> <requires lib="grampswidgets" version="0.0"/>
<object class="GtkDialog" id="editfamily"> <object class="GtkDialog" id="editfamily">
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="type_hint">dialog</property> <property name="type-hint">dialog</property>
<child internal-child="vbox"> <child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox17"> <object class="GtkBox" id="dialog-vbox17">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child internal-child="action_area"> <child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area17"> <object class="GtkButtonBox" id="dialog-action_area17">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="layout_style">end</property> <property name="layout-style">end</property>
<child> <child>
<object class="GtkButton" id="cancel"> <object class="GtkButton" id="cancel">
<property name="label" translatable="yes">_Cancel</property> <property name="label" translatable="yes">_Cancel</property>
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="can_default">True</property> <property name="can-default">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="has_tooltip">True</property> <property name="has-tooltip">True</property>
<property name="tooltip_markup">Abandon changes and close window</property> <property name="tooltip-markup">Abandon changes and close window</property>
<property name="tooltip_text" translatable="yes">Abandon changes and close window</property> <property name="tooltip-text" translatable="yes">Abandon changes and close window</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -38,16 +38,16 @@
<child> <child>
<object class="GtkButton" id="ok"> <object class="GtkButton" id="ok">
<property name="label" translatable="yes">_OK</property> <property name="label" translatable="yes">_OK</property>
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="can_default">True</property> <property name="can-default">True</property>
<property name="has_default">True</property> <property name="has-default">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="has_tooltip">True</property> <property name="has-tooltip">True</property>
<property name="tooltip_markup">Accept changes and close window</property> <property name="tooltip-markup">Accept changes and close window</property>
<property name="tooltip_text" translatable="yes">Accept changes and close window</property> <property name="tooltip-text" translatable="yes">Accept changes and close window</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -58,17 +58,17 @@
<child> <child>
<object class="GtkButton" id="button119"> <object class="GtkButton" id="button119">
<property name="label" translatable="yes">_Help</property> <property name="label" translatable="yes">_Help</property>
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="can_default">True</property> <property name="can-default">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack-type">end</property>
<property name="position">2</property> <property name="position">2</property>
</packing> </packing>
</child> </child>
@ -76,86 +76,87 @@
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="pack-type">end</property>
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkEventBox" id="eventboxtop"> <object class="GtkEventBox" id="eventboxtop">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="visible_window">False</property> <property name="visible-window">False</property>
<child> <child>
<object class="GtkBox" id="vbox"> <object class="GtkBox" id="vbox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="border_width">6</property> <property name="border-width">6</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">4</property> <property name="spacing">4</property>
<child> <child>
<object class="GtkBox" id="hbox121"> <object class="GtkBox" id="hbox121">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<child> <child>
<object class="GtkEventBox" id="ftable_event_box"> <object class="GtkEventBox" id="ftable_event_box">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="visible_window">False</property> <property name="visible-window">False</property>
<child> <child>
<!-- n-columns=4 n-rows=4 -->
<object class="GtkGrid" id="ftable"> <object class="GtkGrid" id="ftable">
<property name="width_request">132</property> <property name="width-request">132</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="border_width">6</property> <property name="border-width">6</property>
<property name="row_spacing">6</property> <property name="row-spacing">6</property>
<property name="column_spacing">12</property> <property name="column-spacing">12</property>
<child> <child>
<object class="GtkLabel" id="label577"> <object class="GtkLabel" id="label577">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_left">6</property> <property name="margin-left">6</property>
<property name="label" translatable="yes">Name:</property> <property name="label" translatable="yes">Name:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">1</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label578"> <object class="GtkLabel" id="label578">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_left">6</property> <property name="margin-left">6</property>
<property name="label" translatable="yes">Birth:</property> <property name="label" translatable="yes">Birth:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">1</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label579"> <object class="GtkLabel" id="label579">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_left">6</property> <property name="margin-left">6</property>
<property name="label" translatable="yes">Death:</property> <property name="label" translatable="yes">Death:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">1</property>
<property name="top_attach">3</property> <property name="top-attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="hbox146"> <object class="GtkBox" id="hbox146">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<child> <child>
<object class="GtkLabel" id="label589"> <object class="GtkLabel" id="label589">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">Father/partner1</property> <property name="label" translatable="yes">Father/partner1</property>
<attributes> <attributes>
@ -170,16 +171,16 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="fbutton_index"> <object class="GtkButton" id="fbutton_index">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2671"> <object class="GtkImage" id="image2671">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">gtk-index</property> <property name="icon-name">gtk-index</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2671-atkobject"> <object class="AtkObject" id="image2671-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Selector</property> <property name="AtkObject::accessible-description" translatable="yes">Selector</property>
@ -202,16 +203,16 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="fbutton_add"> <object class="GtkButton" id="fbutton_add">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2697"> <object class="GtkImage" id="image2697">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">list-add</property> <property name="icon-name">list-add</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2697-atkobject"> <object class="AtkObject" id="image2697-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Add</property> <property name="AtkObject::accessible-description" translatable="yes">Add</property>
@ -233,16 +234,16 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="fbutton_del"> <object class="GtkButton" id="fbutton_del">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2724"> <object class="GtkImage" id="image2724">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">list-remove</property> <property name="icon-name">list-remove</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2724-atkobject"> <object class="AtkObject" id="image2724-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Remove</property> <property name="AtkObject::accessible-description" translatable="yes">Remove</property>
@ -264,16 +265,16 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="fbutton_edit"> <object class="GtkButton" id="fbutton_edit">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2725"> <object class="GtkImage" id="image2725">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">gtk-edit</property> <property name="icon-name">gtk-edit</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2725-atkobject"> <object class="AtkObject" id="image2725-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Edition</property> <property name="AtkObject::accessible-description" translatable="yes">Edition</property>
@ -296,48 +297,71 @@
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">1</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
<property name="width">2</property> <property name="width">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="fbirth"> <object class="GtkLabel" id="fbirth">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">2</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="fdeath"> <object class="GtkLabel" id="fdeath">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">2</property>
<property name="top_attach">3</property> <property name="top-attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="fname"> <object class="GtkLabel" id="fname">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="ellipsize">end</property> <property name="ellipsize">end</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">2</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkBox" id="fimg">
<property name="visible">True</property>
<property name="can-focus">False</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
<property name="height">4</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object> </object>
</child> </child>
</object> </object>
@ -353,87 +377,88 @@
<child> <child>
<object class="GtkEventBox" id="mtable_event_box"> <object class="GtkEventBox" id="mtable_event_box">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="visible_window">False</property> <property name="visible-window">False</property>
<child> <child>
<!-- n-columns=4 n-rows=4 -->
<object class="GtkGrid" id="mtable"> <object class="GtkGrid" id="mtable">
<property name="width_request">132</property> <property name="width-request">132</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="border_width">6</property> <property name="border-width">6</property>
<property name="row_spacing">6</property> <property name="row-spacing">6</property>
<property name="column_spacing">12</property> <property name="column-spacing">12</property>
<child> <child>
<object class="GtkLabel" id="label565"> <object class="GtkLabel" id="label565">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_left">6</property> <property name="margin-left">6</property>
<property name="label" translatable="yes">Name:</property> <property name="label" translatable="yes">Name:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">1</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label567"> <object class="GtkLabel" id="label567">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_left">6</property> <property name="margin-left">6</property>
<property name="label" translatable="yes">Birth:</property> <property name="label" translatable="yes">Birth:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">1</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label568"> <object class="GtkLabel" id="label568">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_left">6</property> <property name="margin-left">6</property>
<property name="label" translatable="yes">Death:</property> <property name="label" translatable="yes">Death:</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">1</property>
<property name="top_attach">3</property> <property name="top-attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="mdeath"> <object class="GtkLabel" id="mdeath">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">2</property>
<property name="top_attach">3</property> <property name="top-attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="mbirth"> <object class="GtkLabel" id="mbirth">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">2</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="hbox147"> <object class="GtkBox" id="hbox147">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<child> <child>
<object class="GtkLabel" id="label574"> <object class="GtkLabel" id="label574">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">Mother/partner2</property> <property name="label" translatable="yes">Mother/partner2</property>
<attributes> <attributes>
@ -448,16 +473,16 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="mbutton_index"> <object class="GtkButton" id="mbutton_index">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2670"> <object class="GtkImage" id="image2670">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">gtk-index</property> <property name="icon-name">gtk-index</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2670-atkobject"> <object class="AtkObject" id="image2670-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Selector</property> <property name="AtkObject::accessible-description" translatable="yes">Selector</property>
@ -479,16 +504,16 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="mbutton_add"> <object class="GtkButton" id="mbutton_add">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2698"> <object class="GtkImage" id="image2698">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">list-add</property> <property name="icon-name">list-add</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2698-atkobject"> <object class="AtkObject" id="image2698-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Add</property> <property name="AtkObject::accessible-description" translatable="yes">Add</property>
@ -510,19 +535,19 @@
</child> </child>
<child> <child>
<object class="GtkToggleButton" id="private"> <object class="GtkToggleButton" id="private">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="has_tooltip">True</property> <property name="has-tooltip">True</property>
<property name="tooltip_markup">Indicates if the record is private</property> <property name="tooltip-markup">Indicates if the record is private</property>
<property name="tooltip_text" translatable="yes">Indicates if the record is private</property> <property name="tooltip-text" translatable="yes">Indicates if the record is private</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2672"> <object class="GtkImage" id="image2672">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">dialog-password</property> <property name="icon-name">dialog-password</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2672-atkobject"> <object class="AtkObject" id="image2672-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Privacy</property> <property name="AtkObject::accessible-name" translatable="yes">Privacy</property>
@ -535,22 +560,22 @@
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack-type">end</property>
<property name="position">3</property> <property name="position">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkButton" id="mbutton_del"> <object class="GtkButton" id="mbutton_del">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2726"> <object class="GtkImage" id="image2726">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">list-remove</property> <property name="icon-name">list-remove</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2726-atkobject"> <object class="AtkObject" id="image2726-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Remove</property> <property name="AtkObject::accessible-description" translatable="yes">Remove</property>
@ -572,16 +597,16 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="mbutton_edit"> <object class="GtkButton" id="mbutton_edit">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2727"> <object class="GtkImage" id="image2727">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">gtk-edit</property> <property name="icon-name">gtk-edit</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2727-atkobject"> <object class="AtkObject" id="image2727-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Edition</property> <property name="AtkObject::accessible-description" translatable="yes">Edition</property>
@ -604,24 +629,47 @@
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">1</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
<property name="width">2</property> <property name="width">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="mname"> <object class="GtkLabel" id="mname">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="ellipsize">end</property> <property name="ellipsize">end</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">2</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkBox" id="mimg">
<property name="visible">True</property>
<property name="can-focus">False</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
<property name="height">4</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object> </object>
</child> </child>
</object> </object>
@ -639,16 +687,17 @@
</packing> </packing>
</child> </child>
<child> <child>
<!-- n-columns=4 n-rows=3 -->
<object class="GtkGrid" id="info"> <object class="GtkGrid" id="info">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="border_width">6</property> <property name="border-width">6</property>
<property name="row_spacing">6</property> <property name="row-spacing">6</property>
<property name="column_spacing">12</property> <property name="column-spacing">12</property>
<child> <child>
<object class="GtkLabel" id="label542"> <object class="GtkLabel" id="label542">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">Relationship Information</property> <property name="label" translatable="yes">Relationship Information</property>
<attributes> <attributes>
@ -656,24 +705,24 @@
</attributes> </attributes>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
<property name="width">4</property> <property name="width">4</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label229"> <object class="GtkLabel" id="label229">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_left">6</property> <property name="margin-left">6</property>
<property name="label" translatable="yes">_ID:</property> <property name="label" translatable="yes">_ID:</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="mnemonic_widget">gid</property> <property name="mnemonic-widget">gid</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -686,67 +735,67 @@
<property name="width_chars">6</property> <property name="width_chars">6</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label202"> <object class="GtkLabel" id="label202">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">_Type:</property> <property name="label" translatable="yes">_Type:</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="justify">center</property> <property name="justify">center</property>
<property name="mnemonic_widget">marriage_type</property> <property name="mnemonic-widget">marriage_type</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkComboBox" id="marriage_type"> <object class="GtkComboBox" id="marriage_type">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="tooltip_text" translatable="yes">The relationship type, eg 'Married' or 'Unmarried'. Use Events for more details.</property> <property name="tooltip-text" translatable="yes">The relationship type, eg 'Married' or 'Unmarried'. Use Events for more details.</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="has_entry">True</property> <property name="has-entry">True</property>
<child internal-child="entry"> <child internal-child="entry">
<object class="GtkEntry" id="marriage_type-entry"> <object class="GtkEntry" id="marriage_type-entry">
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="overwrite_mode">True</property> <property name="overwrite-mode">True</property>
</object> </object>
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">3</property> <property name="left-attach">3</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label1"> <object class="GtkLabel" id="label1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_left">6</property> <property name="margin-left">6</property>
<property name="label" translatable="yes">_Tags:</property> <property name="label" translatable="yes">_Tags:</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="mnemonic_widget">tag_button</property> <property name="mnemonic-widget">tag_button</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="hbox1"> <object class="GtkBox" id="hbox1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<child> <child>
<object class="GtkLabel" id="tag_label"> <object class="GtkLabel" id="tag_label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
</object> </object>
<packing> <packing>
@ -757,11 +806,11 @@
</child> </child>
<child> <child>
<object class="GtkButton" id="tag_button"> <object class="GtkButton" id="tag_button">
<property name="use_action_appearance">False</property> <property name="use-action-appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="tooltip_text" translatable="yes">Edit the tag list</property> <property name="tooltip-text" translatable="yes">Edit the tag list</property>
<child> <child>
<placeholder/> <placeholder/>
</child> </child>
@ -782,8 +831,8 @@
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
<property name="width">3</property> <property name="width">3</property>
</packing> </packing>
</child> </child>

View File

@ -1,52 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 --> <!-- Generated with glade 3.40.0 -->
<interface> <interface>
<requires lib="gtk+" version="3.10"/> <requires lib="gtk+" version="3.10"/>
<requires lib="grampswidgets" version="0.0"/> <requires lib="grampswidgets" version="0.0"/>
<object class="GtkAdjustment" id="adjustment1"> <object class="GtkAdjustment" id="adjustment1">
<property name="upper">100</property> <property name="upper">100</property>
<property name="step_increment">1</property> <property name="step-increment">1</property>
<property name="page_increment">10</property> <property name="page-increment">10</property>
</object> </object>
<object class="GtkAdjustment" id="adjustment2"> <object class="GtkAdjustment" id="adjustment2">
<property name="upper">100</property> <property name="upper">100</property>
<property name="step_increment">1</property> <property name="step-increment">1</property>
<property name="page_increment">10</property> <property name="page-increment">10</property>
</object> </object>
<object class="GtkAdjustment" id="adjustment3"> <object class="GtkAdjustment" id="adjustment3">
<property name="upper">100</property> <property name="upper">100</property>
<property name="step_increment">1</property> <property name="step-increment">1</property>
<property name="page_increment">10</property> <property name="page-increment">10</property>
</object> </object>
<object class="GtkAdjustment" id="adjustment4"> <object class="GtkAdjustment" id="adjustment4">
<property name="upper">100</property> <property name="upper">100</property>
<property name="step_increment">1</property> <property name="step-increment">1</property>
<property name="page_increment">10</property> <property name="page-increment">10</property>
</object> </object>
<object class="GtkDialog" id="editmediaref"> <object class="GtkDialog" id="editmediaref">
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="default_width">600</property> <property name="default-width">600</property>
<property name="default_height">450</property> <property name="default-height">450</property>
<property name="type_hint">dialog</property> <property name="type-hint">dialog</property>
<child internal-child="vbox"> <child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox20"> <object class="GtkBox" id="dialog-vbox20">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">8</property> <property name="spacing">8</property>
<child internal-child="action_area"> <child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area20"> <object class="GtkButtonBox" id="dialog-action_area20">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="layout_style">end</property> <property name="layout-style">end</property>
<child> <child>
<object class="GtkButton" id="button84"> <object class="GtkButton" id="button84">
<property name="label" translatable="yes">_Cancel</property> <property name="label" translatable="yes">_Cancel</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="can_default">True</property> <property name="can-default">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -58,11 +58,11 @@
<object class="GtkButton" id="button82"> <object class="GtkButton" id="button82">
<property name="label" translatable="yes">_OK</property> <property name="label" translatable="yes">_OK</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="can_default">True</property> <property name="can-default">True</property>
<property name="has_default">True</property> <property name="has-default">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -74,10 +74,10 @@
<object class="GtkButton" id="button104"> <object class="GtkButton" id="button104">
<property name="label" translatable="yes">_Help</property> <property name="label" translatable="yes">_Help</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="can_default">True</property> <property name="can-default">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -89,104 +89,105 @@
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="pack-type">end</property>
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="vbox22"> <object class="GtkBox" id="vbox22">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="border_width">6</property> <property name="border-width">6</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">6</property> <property name="spacing">6</property>
<child> <child>
<object class="GtkNotebook" id="notebook_ref"> <object class="GtkNotebook" id="notebook_ref">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<child> <child>
<!-- n-columns=3 n-rows=6 -->
<object class="GtkGrid" id="table50"> <object class="GtkGrid" id="table50">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="border_width">12</property> <property name="border-width">12</property>
<property name="row_spacing">6</property> <property name="row-spacing">6</property>
<property name="column_spacing">12</property> <property name="column-spacing">12</property>
<child> <child>
<object class="GtkLabel" id="label425"> <object class="GtkLabel" id="label425">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="label" translatable="yes">_Corner 2: X</property> <property name="label" translatable="yes">_Corner 2: X</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="mnemonic_widget">corner2_x</property> <property name="mnemonic-widget">corner2_x</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">4</property> <property name="top-attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label428"> <object class="GtkLabel" id="label428">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="label" translatable="yes" context="Y coordinate">Y</property> <property name="label" translatable="yes" context="Y coordinate">Y</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="mnemonic_widget">corner2_y</property> <property name="mnemonic-widget">corner2_y</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">5</property> <property name="top-attach">5</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkSpinButton" id="corner2_y"> <object class="GtkSpinButton" id="corner2_y">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="tooltip_text" translatable="yes">If media is an image, select the specific part of the image you want to reference. <property name="tooltip-text" translatable="yes">If media is an image, select the specific part of the image you want to reference.
You can use the mouse on the picture to select a region, or use these spinbuttons to set the top left, and bottom right corner of the referenced region. Point (0,0) is the top left corner of the picture, and (100,100) the bottom right corner.</property> You can use the mouse on the picture to select a region, or use these spinbuttons to set the top left, and bottom right corner of the referenced region. Point (0,0) is the top left corner of the picture, and (100,100) the bottom right corner.</property>
<property name="invisible_char">●</property> <property name="invisible-char">●</property>
<property name="adjustment">adjustment4</property> <property name="adjustment">adjustment4</property>
<property name="climb_rate">1</property> <property name="climb-rate">1</property>
<property name="numeric">True</property> <property name="numeric">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">5</property> <property name="top-attach">5</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkSpinButton" id="corner2_x"> <object class="GtkSpinButton" id="corner2_x">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="tooltip_text" translatable="yes">If media is an image, select the specific part of the image you want to reference. <property name="tooltip-text" translatable="yes">If media is an image, select the specific part of the image you want to reference.
You can use the mouse on the picture to select a region, or use these spinbuttons to set the top left, and bottom right corner of the referenced region. Point (0,0) is the top left corner of the picture, and (100,100) the bottom right corner.</property> You can use the mouse on the picture to select a region, or use these spinbuttons to set the top left, and bottom right corner of the referenced region. Point (0,0) is the top left corner of the picture, and (100,100) the bottom right corner.</property>
<property name="invisible_char">●</property> <property name="invisible-char">●</property>
<property name="adjustment">adjustment3</property> <property name="adjustment">adjustment3</property>
<property name="climb_rate">1</property> <property name="climb-rate">1</property>
<property name="numeric">True</property> <property name="numeric">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">4</property> <property name="top-attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkFrame" id="frame9"> <object class="GtkFrame" id="frame9">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="tooltip_text" translatable="yes">Referenced region of the image media object. <property name="tooltip-text" translatable="yes">Referenced region of the image media object.
Select a region with clicking and holding the mouse button on the top left corner of the region you want, dragging the mouse to the bottom right corner of the region, and then releasing the mouse button.</property> Select a region with clicking and holding the mouse button on the top left corner of the region you want, dragging the mouse to the bottom right corner of the region, and then releasing the mouse button.</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
<property name="label_xalign">0</property> <property name="label-xalign">0</property>
<child> <child>
<placeholder/> <placeholder/>
</child> </child>
<child type="label"> <child type="label">
<object class="GtkLabel" id="label707"> <object class="GtkLabel" id="label707">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="label" translatable="yes">Preview</property> <property name="label" translatable="yes">Preview</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
@ -195,99 +196,99 @@ Select a region with clicking and holding the mouse button on the top left corne
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
<property name="height">6</property> <property name="height">6</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label426"> <object class="GtkLabel" id="label426">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="label" translatable="yes">_Corner 1: X</property> <property name="label" translatable="yes">_Corner 1: X</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="mnemonic_widget">corner1_x</property> <property name="mnemonic-widget">corner1_x</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkSpinButton" id="corner1_x"> <object class="GtkSpinButton" id="corner1_x">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="tooltip_text" translatable="yes">If media is an image, select the specific part of the image you want to reference. <property name="tooltip-text" translatable="yes">If media is an image, select the specific part of the image you want to reference.
You can use the mouse on the picture to select a region, or use these spinbuttons to set the top left, and bottom right corner of the referenced region. Point (0,0) is the top left corner of the picture, and (100,100) the bottom right corner. You can use the mouse on the picture to select a region, or use these spinbuttons to set the top left, and bottom right corner of the referenced region. Point (0,0) is the top left corner of the picture, and (100,100) the bottom right corner.
</property> </property>
<property name="invisible_char">●</property> <property name="invisible-char">●</property>
<property name="shadow_type">none</property> <property name="shadow-type">none</property>
<property name="adjustment">adjustment2</property> <property name="adjustment">adjustment2</property>
<property name="climb_rate">1</property> <property name="climb-rate">1</property>
<property name="numeric">True</property> <property name="numeric">True</property>
<property name="update_policy">if-valid</property> <property name="update-policy">if-valid</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkSpinButton" id="corner1_y"> <object class="GtkSpinButton" id="corner1_y">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="tooltip_text" translatable="yes">If media is an image, select the specific part of the image you want to reference. <property name="tooltip-text" translatable="yes">If media is an image, select the specific part of the image you want to reference.
You can use the mouse on the picture to select a region, or use these spinbuttons to set the top left, and bottom right corner of the referenced region. Point (0,0) is the top left corner of the picture, and (100,100) the bottom right corner.</property> You can use the mouse on the picture to select a region, or use these spinbuttons to set the top left, and bottom right corner of the referenced region. Point (0,0) is the top left corner of the picture, and (100,100) the bottom right corner.</property>
<property name="invisible_char">●</property> <property name="invisible-char">●</property>
<property name="adjustment">adjustment1</property> <property name="adjustment">adjustment1</property>
<property name="climb_rate">1</property> <property name="climb-rate">1</property>
<property name="numeric">True</property> <property name="numeric">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">3</property> <property name="top-attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label427"> <object class="GtkLabel" id="label427">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="label" translatable="yes" context="Y coordinate">Y</property> <property name="label" translatable="yes" context="Y coordinate">Y</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="mnemonic_widget">corner1_y</property> <property name="mnemonic-widget">corner1_y</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">3</property> <property name="top-attach">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label1"> <object class="GtkLabel" id="label1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">4</property> <property name="top-attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="hbox1"> <object class="GtkBox" id="hbox1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<child> <child>
<object class="GtkToggleButton" id="private"> <object class="GtkToggleButton" id="private">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2686"> <object class="GtkImage" id="image2686">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">dialog-password</property> <property name="icon-name">dialog-password</property>
<property name="icon_size">1</property> <property name="icon_size">1</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2686-atkobject"> <object class="AtkObject" id="image2686-atkobject">
@ -306,25 +307,25 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">False</property> <property name="fill">False</property>
<property name="pack_type">end</property> <property name="pack-type">end</property>
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="dummy"> <object class="GtkLabel" id="dummy">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -338,14 +339,14 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<child type="tab"> <child type="tab">
<object class="GtkLabel" id="label424"> <object class="GtkLabel" id="label424">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="label" translatable="yes">General</property> <property name="label" translatable="yes">General</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
</attributes> </attributes>
</object> </object>
<packing> <packing>
<property name="tab_fill">False</property> <property name="tab-fill">False</property>
</packing> </packing>
</child> </child>
</object> </object>
@ -359,61 +360,62 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<child> <child>
<object class="GtkExpander" id="expander1"> <object class="GtkExpander" id="expander1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<child> <child>
<object class="GtkNotebook" id="notebook_shared"> <object class="GtkNotebook" id="notebook_shared">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<child> <child>
<!-- n-columns=4 n-rows=8 -->
<object class="GtkGrid" id="table2"> <object class="GtkGrid" id="table2">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="border_width">12</property> <property name="border-width">12</property>
<property name="row_spacing">6</property> <property name="row-spacing">6</property>
<property name="column_spacing">12</property> <property name="column-spacing">12</property>
<child> <child>
<object class="GtkLabel" id="label129"> <object class="GtkLabel" id="label129">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">_Path:</property> <property name="label" translatable="yes">_Path:</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="justify">center</property> <property name="justify">center</property>
<property name="mnemonic_widget">path</property> <property name="mnemonic-widget">path</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">3</property> <property name="top-attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label132"> <object class="GtkLabel" id="label132">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">_ID:</property> <property name="label" translatable="yes">_ID:</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="justify">center</property> <property name="justify">center</property>
<property name="mnemonic_widget">gid</property> <property name="mnemonic-widget">gid</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label126"> <object class="GtkLabel" id="label126">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">_Title:</property> <property name="label" translatable="yes">_Title:</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="justify">center</property> <property name="justify">center</property>
<property name="mnemonic_widget">description</property> <property name="mnemonic-widget">description</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -425,21 +427,21 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<property name="invisible_char">●</property> <property name="invisible_char">●</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">1</property> <property name="top-attach">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="warn_box"> <object class="GtkBox" id="warn_box">
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="border_width">6</property> <property name="border-width">6</property>
<property name="spacing">12</property> <property name="spacing">12</property>
<child> <child>
<object class="GtkImage" id="image2705"> <object class="GtkImage" id="image2705">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="pixel_size">48</property> <property name="pixel-size">48</property>
<property name="icon_name">dialog-warning</property> <property name="icon-name">dialog-warning</property>
<property name="icon_size">6</property> <property name="icon_size">6</property>
</object> </object>
<packing> <packing>
@ -450,15 +452,15 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child> </child>
<child> <child>
<object class="GtkLabel" id="label659"> <object class="GtkLabel" id="label659">
<property name="width_request">400</property> <property name="width-request">400</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="margin_top">3</property> <property name="margin-top">3</property>
<property name="margin_bottom">3</property> <property name="margin-bottom">3</property>
<property name="label" translatable="yes">&lt;b&gt;Note:&lt;/b&gt; Any changes in the shared media object information will be reflected in the media object itself.</property> <property name="label" translatable="yes">&lt;b&gt;Note:&lt;/b&gt; Any changes in the shared media object information will be reflected in the media object itself.</property>
<property name="use_markup">True</property> <property name="use-markup">True</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="wrap">True</property> <property name="wrap">True</property>
</object> </object>
<packing> <packing>
@ -469,29 +471,29 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">6</property> <property name="top-attach">7</property>
<property name="width">3</property> <property name="width">3</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkFrame" id="frame6"> <object class="GtkFrame" id="frame6">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="label_xalign">0</property> <property name="label-xalign">0</property>
<child> <child>
<object class="GtkEventBox" id="eventbox"> <object class="GtkEventBox" id="eventbox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="has_tooltip">True</property> <property name="has-tooltip">True</property>
<property name="tooltip_markup">Double click image to view in an external viewer</property> <property name="tooltip-markup">Double click image to view in an external viewer</property>
<property name="tooltip_text" translatable="yes">Double click image to view in an external viewer</property> <property name="tooltip-text" translatable="yes">Double click image to view in an external viewer</property>
<child> <child>
<object class="GtkImage" id="pixmap"> <object class="GtkImage" id="pixmap">
<property name="width_request">100</property> <property name="width-request">100</property>
<property name="height_request">100</property> <property name="height-request">100</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
</object> </object>
</child> </child>
</object> </object>
@ -499,7 +501,7 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<child type="label"> <child type="label">
<object class="GtkLabel" id="label175"> <object class="GtkLabel" id="label175">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="label" translatable="yes">Preview</property> <property name="label" translatable="yes">Preview</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
@ -508,48 +510,48 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left-attach">0</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
<property name="height">5</property> <property name="height">5</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label660"> <object class="GtkLabel" id="label660">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">Type:</property> <property name="label" translatable="yes">Type:</property>
<property name="mnemonic_widget">type</property> <property name="mnemonic-widget">type</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">5</property> <property name="top-attach">6</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="type"> <object class="GtkLabel" id="type">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="tooltip_text" translatable="yes">Type of media object as indicated by the computer, eg Image, Video, ...</property> <property name="tooltip-text" translatable="yes">Type of media object as indicated by the computer, eg Image, Video, ...</property>
<property name="halign">start</property> <property name="halign">start</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">5</property> <property name="top-attach">6</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label422"> <object class="GtkLabel" id="label422">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">_Date:</property> <property name="label" translatable="yes">_Date:</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="mnemonic_widget">date_entry</property> <property name="mnemonic-widget">date_entry</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -560,23 +562,23 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<property name="invisible_char">•</property> <property name="invisible_char">•</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkButton" id="date_edit"> <object class="GtkButton" id="date_edit">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="has_tooltip">True</property> <property name="has-tooltip">True</property>
<property name="tooltip_text" translatable="yes">Invoke date editor</property> <property name="tooltip-text" translatable="yes">Invoke date editor</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2264"> <object class="GtkImage" id="image2264">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">gramps-date</property> <property name="icon-name">gramps-date</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2264-atkobject"> <object class="AtkObject" id="image2264-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Date</property> <property name="AtkObject::accessible-description" translatable="yes">Date</property>
@ -595,21 +597,21 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<accelerator key="d" signal="activate" modifiers="GDK_CONTROL_MASK"/> <accelerator key="d" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</object> </object>
<packing> <packing>
<property name="left_attach">3</property> <property name="left-attach">3</property>
<property name="top_attach">2</property> <property name="top-attach">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkToggleButton" id="privacy"> <object class="GtkToggleButton" id="privacy">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2710"> <object class="GtkImage" id="image2710">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">dialog-password</property> <property name="icon-name">dialog-password</property>
<property name="icon_size">1</property> <property name="icon_size">1</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2710-atkobject"> <object class="AtkObject" id="image2710-atkobject">
@ -625,8 +627,8 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">3</property> <property name="left-attach">3</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -637,23 +639,23 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<property name="invisible_char">•</property> <property name="invisible_char">•</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">0</property> <property name="top-attach">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkButton" id="file_select"> <object class="GtkButton" id="file_select">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<property name="has_tooltip">True</property> <property name="has-tooltip">True</property>
<property name="tooltip_text" translatable="yes">Select a file</property> <property name="tooltip-text" translatable="yes">Select a file</property>
<property name="relief">none</property> <property name="relief">none</property>
<child> <child>
<object class="GtkImage" id="image2673"> <object class="GtkImage" id="image2673">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="icon_name">document-open</property> <property name="icon-name">document-open</property>
<property name="icon_size">1</property> <property name="icon_size">1</property>
<child internal-child="accessible"> <child internal-child="accessible">
<object class="AtkObject" id="image2673-atkobject"> <object class="AtkObject" id="image2673-atkobject">
@ -672,8 +674,8 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">3</property> <property name="left-attach">3</property>
<property name="top_attach">3</property> <property name="top-attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -684,40 +686,40 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<property name="invisible_char">•</property> <property name="invisible_char">•</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">3</property> <property name="top-attach">4</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="label2"> <object class="GtkLabel" id="label2">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="label" translatable="yes">_Tags:</property> <property name="label" translatable="yes">_Tags:</property>
<property name="use_underline">True</property> <property name="use-underline">True</property>
<property name="mnemonic_widget">tag_button</property> <property name="mnemonic-widget">tag_button</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left-attach">1</property>
<property name="top_attach">4</property> <property name="top-attach">5</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel" id="tag_label"> <object class="GtkLabel" id="tag_label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left-attach">2</property>
<property name="top_attach">4</property> <property name="top-attach">5</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkButton" id="tag_button"> <object class="GtkButton" id="tag_button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can-focus">True</property>
<property name="receives_default">True</property> <property name="receives-default">True</property>
<accessibility> <accessibility>
<relation type="labelled-by" target="label1"/> <relation type="labelled-by" target="label1"/>
</accessibility> </accessibility>
@ -728,10 +730,113 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">3</property> <property name="left-attach">3</property>
<property name="top_attach">4</property> <property name="top-attach">5</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkLabel" id="label157">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="margin-top">3</property>
<property name="margin-bottom">3</property>
<property name="label" translatable="yes">_Place:</property>
<property name="use-underline">True</property>
<property name="justify">center</property>
<property name="mnemonic-widget">select_place</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkButton" id="add_del_place">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="relief">none</property>
<child>
<object class="GtkImage" id="image2699">
<property name="visible">True</property>
<property name="can-focus">False</property>
</object>
</child>
<accelerator key="a" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</object>
<packing>
<property name="left-attach">3</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkBox" id="hbox130">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkEventBox" id="place_event_box">
<property name="can-focus">False</property>
<property name="visible-window">False</property>
<child>
<object class="GtkLabel" id="place">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
<property name="ellipsize">end</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="select_place">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="relief">none</property>
<child>
<object class="GtkImage" id="image2700">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="icon-name">gtk-index</property>
<child internal-child="accessible">
<object class="AtkObject" id="image2700-atkobject">
<property name="AtkObject::accessible-description" translatable="yes">Selector</property>
</object>
</child>
</object>
</child>
<accessibility>
<relation type="labelled-by" target="place"/>
</accessibility>
<child internal-child="accessible">
<object class="AtkObject" id="select_place-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Place</property>
</object>
</child>
<accelerator key="s" signal="activate" modifiers="GDK_CONTROL_MASK"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child> <child>
<placeholder/> <placeholder/>
</child> </child>
@ -746,20 +851,20 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child> </child>
</object> </object>
<packing> <packing>
<property name="tab_fill">False</property> <property name="tab-fill">False</property>
</packing> </packing>
</child> </child>
<child type="tab"> <child type="tab">
<object class="GtkLabel" id="label617"> <object class="GtkLabel" id="label617">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="label" translatable="yes">General</property> <property name="label" translatable="yes">General</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
</attributes> </attributes>
</object> </object>
<packing> <packing>
<property name="tab_fill">False</property> <property name="tab-fill">False</property>
</packing> </packing>
</child> </child>
</object> </object>
@ -767,7 +872,7 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<child type="label"> <child type="label">
<object class="GtkLabel" id="label616"> <object class="GtkLabel" id="label616">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can-focus">False</property>
<property name="label" translatable="yes">Shared Information</property> <property name="label" translatable="yes">Shared Information</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>

17
gramps/gui/glade/editperson.glade Normal file → Executable file
View File

@ -652,7 +652,22 @@ Indicate that the surname consists of different parts. Every surname has its own
<property name="mnemonic_widget">tag_button</property> <property name="mnemonic_widget">tag_button</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">True</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="age_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="margin_left">6</property>
<property name="margin_right">6</property>
<property name="label" translatable="yes">Age:</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">4</property> <property name="position">4</property>
</packing> </packing>

34
gramps/plugins/gramplet/todogramplet.py Normal file → Executable file
View File

@ -44,11 +44,20 @@ class ToDoGramplet(Gramplet):
Displays all the To Do notes in the database. Displays all the To Do notes in the database.
""" """
def init(self): def init(self):
self.note_type = "To Do"
self.show_toolbar = True
self.gui.WIDGET = self.build_gui() self.gui.WIDGET = self.build_gui()
self.gui.get_container_widget().remove(self.gui.textview) self.gui.get_container_widget().remove(self.gui.textview)
self.gui.get_container_widget().add(self.gui.WIDGET) self.gui.get_container_widget().add(self.gui.WIDGET)
self.gui.WIDGET.show() self.gui.WIDGET.show()
def build_options(self):
from gramps.gen.plug.menu import StringOption, BooleanOption
self.add_option(StringOption(_("Note type"),
self.note_type))
self.add_option(BooleanOption(_("Show toolbar"),
self.show_toolbar))
def build_gui(self): def build_gui(self):
""" """
Build the GUI interface. Build the GUI interface.
@ -74,6 +83,8 @@ 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.hbox = hbox
self.title = Gtk.Label(halign=Gtk.Align.START) self.title = Gtk.Label(halign=Gtk.Align.START)
self.title.set_line_wrap(True) self.title.set_line_wrap(True)
@ -91,6 +102,23 @@ class ToDoGramplet(Gramplet):
top.show_all() top.show_all()
return top return top
def save_options(self):
self.note_type = self.get_option(_("Note type")).get_value()
self.show_toolbar = self.get_option(_("Show toolbar")).get_value()
def on_load(self):
if len(self.gui.data) == 2:
self.note_type = self.gui.data[0]
self.show_toolbar = bool(self.gui.data[1])
def save_update_options(self, widget=None):
self.note_type = self.get_option(_("Note type")).get_value()
self.show_toolbar = self.get_option(_("Show toolbar")).get_value()
self.gui.data = [self.note_type, self.show_toolbar]
self.update()
def main(self): def main(self):
self.get_notes() self.get_notes()
@ -101,7 +129,7 @@ class ToDoGramplet(Gramplet):
all_notes = self.dbstate.db.get_note_handles() all_notes = self.dbstate.db.get_note_handles()
FilterClass = GenericFilterFactory('Note') FilterClass = GenericFilterFactory('Note')
filter = FilterClass() filter = FilterClass()
filter.add_rule(rules.note.HasType(["To Do"])) filter.add_rule(rules.note.HasType([self.note_type]))
note_list = filter.apply(self.dbstate.db, all_notes) note_list = filter.apply(self.dbstate.db, all_notes)
return note_list return note_list
@ -152,6 +180,8 @@ class ToDoGramplet(Gramplet):
{'current': self.current + 1, {'current': self.current + 1,
'total': len(self.note_list)}) 'total': len(self.note_list)})
self.hbox.set_visible(self.show_toolbar)
def left_clicked(self, button): def left_clicked(self, button):
""" """
Display the previous note. Display the previous note.
@ -200,7 +230,7 @@ class ToDoGramplet(Gramplet):
""" """
from gramps.gui.editors import EditNote from gramps.gui.editors import EditNote
note = Note() note = Note()
note.set_type(NoteType.TODO) note.set_type(self.note_type)
try: try:
EditNote(self.gui.dbstate, self.gui.uistate, [], note) EditNote(self.gui.dbstate, self.gui.uistate, [], note)
except AttributeError: except AttributeError:

28
gramps/plugins/view/geoclose.py Normal file → Executable file
View File

@ -204,7 +204,6 @@ class GeoClose(GeoGraphyView):
('geography.center-lat', 0.0), ('geography.center-lat', 0.0),
('geography.center-lon', 0.0), ('geography.center-lon', 0.0),
('geography.use-keypad', True), ('geography.use-keypad', True),
('geography.personal-map', ""),
('geography.map_service', constants.OPENSTREETMAP), ('geography.map_service', constants.OPENSTREETMAP),
('geography.max_places', 5000), ('geography.max_places', 5000),
@ -247,6 +246,14 @@ class GeoClose(GeoGraphyView):
self.add_item = None self.add_item = None
self.newmenu = None self.newmenu = None
self.config_meeting_slider = None self.config_meeting_slider = None
self.dbstate.connect('database-changed', self.reset_change_db)
def reset_change_db(self, dummy_dbase):
"""
Used to reset the family reference
"""
self.refperson = None
def get_title(self): def get_title(self):
""" """
@ -388,6 +395,17 @@ class GeoClose(GeoGraphyView):
self.refperson = sel.run() self.refperson = sel.run()
self.goto_handle(None) self.goto_handle(None)
def select_person2(self, *obj):
"""
Open a selection box to choose the secondary person.
"""
selectperson = SelectorFactory('Person')
sel = selectperson(self.dbstate, self.uistate, self.track,
_("Select the person which will be our active."),
skip=self.skip_list)
self.uistate.set_active(sel.run().get_handle(), 'Person')
self.goto_handle(None)
def build_tree(self): def build_tree(self):
""" """
This is called by the parent class when the view becomes visible. Since This is called by the parent class when the view becomes visible. Since
@ -569,6 +587,7 @@ class GeoClose(GeoGraphyView):
""" """
self.newmenu = Gtk.Menu() self.newmenu = Gtk.Menu()
menu = self.newmenu menu = self.newmenu
menu.set_title("person")
events = [] events = []
message = "" message = ""
oldplace = "" oldplace = ""
@ -613,6 +632,7 @@ class GeoClose(GeoGraphyView):
menu.append(add_item) menu.append(add_item)
self.itemoption = Gtk.Menu() self.itemoption = Gtk.Menu()
itemoption = self.itemoption itemoption = self.itemoption
itemoption.set_title(message)
itemoption.show() itemoption.show()
add_item.set_submenu(itemoption) add_item.set_submenu(itemoption)
modify = Gtk.MenuItem(label=_("Edit Event")) modify = Gtk.MenuItem(label=_("Edit Event"))
@ -642,6 +662,12 @@ class GeoClose(GeoGraphyView):
add_item.connect("activate", self.select_person) add_item.connect("activate", self.select_person)
add_item.show() add_item.show()
menu.append(add_item) menu.append(add_item)
add_item = Gtk.MenuItem(
label=_("Choose the new active person"))
add_item.connect("activate", self.select_person2)
add_item.show()
menu.append(add_item)
return return
def get_default_gramplets(self): def get_default_gramplets(self):

25
gramps/plugins/view/geofamclose.py Normal file → Executable file
View File

@ -203,7 +203,6 @@ class GeoFamClose(GeoGraphyView):
('geography.center-lat', 0.0), ('geography.center-lat', 0.0),
('geography.center-lon', 0.0), ('geography.center-lon', 0.0),
('geography.use-keypad', True), ('geography.use-keypad', True),
('geography.personal-map', ""),
('geography.map_service', constants.OPENSTREETMAP), ('geography.map_service', constants.OPENSTREETMAP),
('geography.max_places', 5000), ('geography.max_places', 5000),
@ -244,6 +243,13 @@ class GeoFamClose(GeoGraphyView):
self.cal = config.get('preferences.calendar-format-report') self.cal = config.get('preferences.calendar-format-report')
self.no_show_places_in_status_bar = False self.no_show_places_in_status_bar = False
self.config_meeting_slider = None self.config_meeting_slider = None
self.dbstate.connect('database-changed', self.reset_change_db)
def reset_change_db(self, dummy_dbase):
"""
Used to reset the family reference
"""
self.reffamily = None
def get_title(self): def get_title(self):
""" """
@ -382,6 +388,15 @@ class GeoFamClose(GeoGraphyView):
self.reffamily = sel.run() self.reffamily = sel.run()
self.goto_handle(None) self.goto_handle(None)
def select_family2(self, *obj):
"""
Open a selection box to choose the secondary family.
"""
select_family = SelectorFactory('Family')
sel = select_family(self.dbstate, self.uistate)
self.uistate.set_active(sel.run().get_handle(), 'Family')
self.goto_handle(None)
def build_tree(self): def build_tree(self):
""" """
This is called by the parent class when the view becomes visible. Since This is called by the parent class when the view becomes visible. Since
@ -759,6 +774,7 @@ class GeoFamClose(GeoGraphyView):
""" """
self.menu = Gtk.Menu() self.menu = Gtk.Menu()
menu = self.menu menu = self.menu
menu.set_title("family")
events = [] events = []
message = "" message = ""
oldplace = "" oldplace = ""
@ -802,6 +818,7 @@ class GeoFamClose(GeoGraphyView):
menu.append(add_item) menu.append(add_item)
self.itemoption = Gtk.Menu() self.itemoption = Gtk.Menu()
itemoption = self.itemoption itemoption = self.itemoption
itemoption.set_title(message)
itemoption.show() itemoption.show()
add_item.set_submenu(itemoption) add_item.set_submenu(itemoption)
modify = Gtk.MenuItem(label=_("Edit Event")) modify = Gtk.MenuItem(label=_("Edit Event"))
@ -831,6 +848,12 @@ class GeoFamClose(GeoGraphyView):
add_item.connect("activate", self.select_family) add_item.connect("activate", self.select_family)
add_item.show() add_item.show()
menu.append(add_item) menu.append(add_item)
add_item = Gtk.MenuItem(
label=_("Choose the new active family"))
add_item.connect("activate", self.select_family2)
add_item.show()
menu.append(add_item)
return return
def get_default_gramplets(self): def get_default_gramplets(self):