add Place chooser to media reference editor (stores Gramps handle in attribute list)

This commit is contained in:
Michael Becker 2023-05-17 22:35:00 -04:00
parent 024eb0a1a3
commit 2c8148e902
2 changed files with 341 additions and 211 deletions

View File

@ -51,8 +51,9 @@ from gramps.gen.const import THUMBSCALE
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.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 .objectentries import PlaceEntry
from ..glade import Glade
from .displaytabs import (CitationEmbedList, MediaAttrEmbedList, MediaBackRefList,
NoteTab)
@ -275,6 +276,13 @@ class EditMediaRef(EditReference):
self.source.get_date_object(),
self.uistate, self.track,
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.top.get_object("tag_label"),
@ -516,6 +524,23 @@ class EditMediaRef(EditReference):
self._setup_notebook_tabs(notebook_src)
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):

View File

@ -1,52 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- Generated with glade 3.40.0 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<requires lib="grampswidgets" version="0.0"/>
<object class="GtkAdjustment" id="adjustment1">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="adjustment2">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="adjustment3">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkAdjustment" id="adjustment4">
<property name="upper">100</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
<property name="step-increment">1</property>
<property name="page-increment">10</property>
</object>
<object class="GtkDialog" id="editmediaref">
<property name="can_focus">False</property>
<property name="default_width">600</property>
<property name="default_height">450</property>
<property name="type_hint">dialog</property>
<property name="can-focus">False</property>
<property name="default-width">600</property>
<property name="default-height">450</property>
<property name="type-hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox20">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">8</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area20">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<property name="can-focus">False</property>
<property name="layout-style">end</property>
<child>
<object class="GtkButton" id="button84">
<property name="label" translatable="yes">_Cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">True</property>
<property name="use-underline">True</property>
</object>
<packing>
<property name="expand">False</property>
@ -58,11 +58,11 @@
<object class="GtkButton" id="button82">
<property name="label" translatable="yes">_OK</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="has-default">True</property>
<property name="receives-default">True</property>
<property name="use-underline">True</property>
</object>
<packing>
<property name="expand">False</property>
@ -74,10 +74,10 @@
<object class="GtkButton" id="button104">
<property name="label" translatable="yes">_Help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="can-focus">True</property>
<property name="can-default">True</property>
<property name="receives-default">True</property>
<property name="use-underline">True</property>
</object>
<packing>
<property name="expand">False</property>
@ -89,104 +89,105 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="pack-type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox" id="vbox22">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="can-focus">False</property>
<property name="border-width">6</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkNotebook" id="notebook_ref">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can-focus">True</property>
<child>
<!-- n-columns=3 n-rows=6 -->
<object class="GtkGrid" id="table50">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<property name="can-focus">False</property>
<property name="border-width">12</property>
<property name="row-spacing">6</property>
<property name="column-spacing">12</property>
<child>
<object class="GtkLabel" id="label425">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">_Corner 2: X</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">corner2_x</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">corner2_x</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
<property name="left-attach">1</property>
<property name="top-attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label428">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes" context="Y coordinate">Y</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">corner2_y</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">corner2_y</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">5</property>
<property name="left-attach">1</property>
<property name="top-attach">5</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="corner2_y">
<property name="visible">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="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.
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="climb_rate">1</property>
<property name="climb-rate">1</property>
<property name="numeric">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">5</property>
<property name="left-attach">2</property>
<property name="top-attach">5</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="corner2_x">
<property name="visible">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="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.
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="climb_rate">1</property>
<property name="climb-rate">1</property>
<property name="numeric">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">4</property>
<property name="left-attach">2</property>
<property name="top-attach">4</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame9">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Referenced region of the image media object.
<property name="can-focus">False</property>
<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>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="label_xalign">0</property>
<property name="label-xalign">0</property>
<child>
<placeholder/>
</child>
<child type="label">
<object class="GtkLabel" id="label707">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Preview</property>
<attributes>
<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>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
<property name="height">6</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label426">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">_Corner 1: X</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">corner1_x</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">corner1_x</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="left-attach">1</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="corner1_x">
<property name="visible">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="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.
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="shadow_type">none</property>
<property name="invisible-char">●</property>
<property name="shadow-type">none</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="update_policy">if-valid</property>
<property name="update-policy">if-valid</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">2</property>
<property name="left-attach">2</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="corner1_y">
<property name="visible">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="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.
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="climb_rate">1</property>
<property name="climb-rate">1</property>
<property name="numeric">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">3</property>
<property name="left-attach">2</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label427">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes" context="Y coordinate">Y</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">corner1_y</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">corner1_y</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
<property name="left-attach">1</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
<property name="left-attach">1</property>
<property name="top-attach">4</property>
</packing>
</child>
<child>
<object class="GtkBox" id="hbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<child>
<object class="GtkToggleButton" id="private">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="relief">none</property>
<child>
<object class="GtkImage" id="image2686">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">dialog-password</property>
<property name="can-focus">False</property>
<property name="icon-name">dialog-password</property>
<property name="icon_size">1</property>
<child internal-child="accessible">
<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>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="pack_type">end</property>
<property name="pack-type">end</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="left-attach">2</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="dummy">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="vexpand">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="left-attach">2</property>
<property name="top-attach">1</property>
</packing>
</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">
<object class="GtkLabel" id="label424">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">General</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="tab_fill">False</property>
<property name="tab-fill">False</property>
</packing>
</child>
</object>
@ -359,61 +360,62 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<child>
<object class="GtkExpander" id="expander1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can-focus">True</property>
<child>
<object class="GtkNotebook" id="notebook_shared">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can-focus">True</property>
<child>
<!-- n-columns=4 n-rows=8 -->
<object class="GtkGrid" id="table2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<property name="can-focus">False</property>
<property name="border-width">12</property>
<property name="row-spacing">6</property>
<property name="column-spacing">12</property>
<child>
<object class="GtkLabel" id="label129">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">start</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="mnemonic_widget">path</property>
<property name="mnemonic-widget">path</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
<property name="left-attach">1</property>
<property name="top-attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label132">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">start</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="mnemonic_widget">gid</property>
<property name="mnemonic-widget">gid</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label126">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">start</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="mnemonic_widget">description</property>
<property name="mnemonic-widget">description</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="left-attach">1</property>
<property name="top-attach">1</property>
</packing>
</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>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">1</property>
<property name="left-attach">2</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<object class="GtkBox" id="warn_box">
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="can-focus">False</property>
<property name="border-width">6</property>
<property name="spacing">12</property>
<child>
<object class="GtkImage" id="image2705">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixel_size">48</property>
<property name="icon_name">dialog-warning</property>
<property name="can-focus">False</property>
<property name="pixel-size">48</property>
<property name="icon-name">dialog-warning</property>
<property name="icon_size">6</property>
</object>
<packing>
@ -450,15 +452,15 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child>
<child>
<object class="GtkLabel" id="label659">
<property name="width_request">400</property>
<property name="width-request">400</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="margin_top">3</property>
<property name="margin_bottom">3</property>
<property name="margin-top">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="use_markup">True</property>
<property name="use_underline">True</property>
<property name="use-markup">True</property>
<property name="use-underline">True</property>
<property name="wrap">True</property>
</object>
<packing>
@ -469,29 +471,29 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">6</property>
<property name="left-attach">0</property>
<property name="top-attach">7</property>
<property name="width">3</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame6">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="can-focus">False</property>
<property name="label-xalign">0</property>
<child>
<object class="GtkEventBox" id="eventbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="has_tooltip">True</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="can-focus">False</property>
<property name="has-tooltip">True</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>
<child>
<object class="GtkImage" id="pixmap">
<property name="width_request">100</property>
<property name="height_request">100</property>
<property name="width-request">100</property>
<property name="height-request">100</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
</object>
</child>
</object>
@ -499,7 +501,7 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<child type="label">
<object class="GtkLabel" id="label175">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Preview</property>
<attributes>
<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>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
<property name="height">5</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label660">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Type:</property>
<property name="mnemonic_widget">type</property>
<property name="mnemonic-widget">type</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">5</property>
<property name="left-attach">1</property>
<property name="top-attach">6</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="type">
<property name="visible">True</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="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="halign">start</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">5</property>
<property name="left-attach">2</property>
<property name="top-attach">6</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label422">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">_Date:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">date_entry</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">date_entry</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="left-attach">1</property>
<property name="top-attach">2</property>
</packing>
</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>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">2</property>
<property name="left-attach">2</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkButton" id="date_edit">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Invoke date editor</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="has-tooltip">True</property>
<property name="tooltip-text" translatable="yes">Invoke date editor</property>
<property name="relief">none</property>
<child>
<object class="GtkImage" id="image2264">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">gramps-date</property>
<property name="can-focus">False</property>
<property name="icon-name">gramps-date</property>
<child internal-child="accessible">
<object class="AtkObject" id="image2264-atkobject">
<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"/>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">2</property>
<property name="left-attach">3</property>
<property name="top-attach">2</property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="privacy">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="relief">none</property>
<child>
<object class="GtkImage" id="image2710">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">dialog-password</property>
<property name="can-focus">False</property>
<property name="icon-name">dialog-password</property>
<property name="icon_size">1</property>
<child internal-child="accessible">
<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>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="left-attach">3</property>
<property name="top-attach">0</property>
</packing>
</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>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="left-attach">2</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="file_select">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Select a file</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="has-tooltip">True</property>
<property name="tooltip-text" translatable="yes">Select a file</property>
<property name="relief">none</property>
<child>
<object class="GtkImage" id="image2673">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">document-open</property>
<property name="can-focus">False</property>
<property name="icon-name">document-open</property>
<property name="icon_size">1</property>
<child internal-child="accessible">
<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>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">3</property>
<property name="left-attach">3</property>
<property name="top-attach">4</property>
</packing>
</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>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">3</property>
<property name="left-attach">2</property>
<property name="top-attach">4</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">_Tags:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">tag_button</property>
<property name="use-underline">True</property>
<property name="mnemonic-widget">tag_button</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
<property name="left-attach">1</property>
<property name="top-attach">5</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="tag_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">4</property>
<property name="left-attach">2</property>
<property name="top-attach">5</property>
</packing>
</child>
<child>
<object class="GtkButton" id="tag_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<accessibility>
<relation type="labelled-by" target="label1"/>
</accessibility>
@ -728,8 +730,108 @@ You can use the mouse on the picture to select a region, or use these spinbutton
</child>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">4</property>
<property name="left-attach">3</property>
<property name="top-attach">5</property>
</packing>
</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>
@ -744,22 +846,25 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="tab_fill">False</property>
<property name="tab-fill">False</property>
</packing>
</child>
<child type="tab">
<object class="GtkLabel" id="label617">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">General</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="tab_fill">False</property>
<property name="tab-fill">False</property>
</packing>
</child>
</object>
@ -767,7 +872,7 @@ You can use the mouse on the picture to select a region, or use these spinbutton
<child type="label">
<object class="GtkLabel" id="label616">
<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>
<attributes>
<attribute name="weight" value="bold"/>