diff options
author | Jonas Danielsson <jonas@threetimestwo.org> | 2015-01-14 01:56:49 -0500 |
---|---|---|
committer | Jonas Danielsson <jonas@threetimestwo.org> | 2015-01-14 01:57:09 -0500 |
commit | 61fe4bf7cc38fd8f414e6f540f9c53bb288aab47 (patch) | |
tree | 73d98b3298eeab11a4960228d3d6a50ce25d8e63 /data | |
parent | 4d94dfe84217b9fda051dee154d3a4aab780e47b (diff) | |
download | gnome-contacts-61fe4bf7cc38fd8f414e6f540f9c53bb288aab47.tar.gz |
Add map widget
https://bugzilla.gnome.org/show_bug.cgi?id=658553
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 1 | ||||
-rw-r--r-- | data/contacts.gresource.xml | 1 | ||||
-rw-r--r-- | data/ui/contacts-address-map.ui | 40 | ||||
-rw-r--r-- | data/ui/style.css | 4 |
4 files changed, 46 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 780f586..60e4b6c 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -37,6 +37,7 @@ EXTRA_DIST = \ org.gnome.Contacts.search-provider.ini.in.in \ contacts.gresource.xml \ ui/app-menu.ui \ + ui/contacts-address-map.ui \ ui/contacts-window.ui \ ui/contacts-list-pane.ui \ ui/style.css \ diff --git a/data/contacts.gresource.xml b/data/contacts.gresource.xml index 2b1ba03..98bfee4 100644 --- a/data/contacts.gresource.xml +++ b/data/contacts.gresource.xml @@ -3,6 +3,7 @@ <gresource prefix="/org/gnome/contacts"> <file compressed="true">ui/style.css</file> <file compressed="true" preprocess="xml-stripblanks">ui/app-menu.ui</file> + <file compressed="true" preprocess="xml-stripblanks">ui/contacts-address-map.ui</file> <file compressed="true" preprocess="xml-stripblanks">ui/contacts-window.ui</file> <file compressed="true" preprocess="xml-stripblanks">ui/contacts-list-pane.ui</file> </gresource> diff --git a/data/ui/contacts-address-map.ui b/data/ui/contacts-address-map.ui new file mode 100644 index 0000000..2ad0304 --- /dev/null +++ b/data/ui/contacts-address-map.ui @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.10 --> + <template class="ContactsAddressMap" parent="GtkFrame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">False</property> + <property name="hexpand_set">True</property> + <property name="shadow_type">in</property> + <property name="width_request">300</property> + <property name="height_request">300</property> + <property name="valign">start</property> + <property name="halign">start</property> + <style> + <class name="contacts-map"/> + <class name="dim-label"/> + </style> + <child> + <object class="GtkStack" id="map_stack"> + <property name="visible">True</property> + <child> + <object class="GtkImage" id="map_icon"> + <property name="name">mark-location-image</property> + <property name="visible">True</property> + <property name="halign">center</property> + <property name="valign">center</property> + <property name="icon-name">mark-location-symbolic</property> + <property name="pixel-size">48</property> + </object> + </child> + <child> + <object class="GtkGrid" id="map_grid"> + <property name="orientation">vertical</property> + <property name="visible">True</property> + </object> + </child> + </object> + </child> + </template> +</interface> diff --git a/data/ui/style.css b/data/ui/style.css index 92647a7..7ecf854 100644 --- a/data/ui/style.css +++ b/data/ui/style.css @@ -10,6 +10,10 @@ ContactsListPane.frame:dir(rtl) { border-width: 0 0 0 1px; } +.contacts-map { + background-color: @theme_bg_color; +} + /* contatcs view new color */ .contacts-view { background-color: transparent; |