summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2018-01-19 00:13:46 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2018-01-19 00:13:46 +0100
commit59ccd63bbae642affeacf5fad56e5dd75fddf762 (patch)
treefd678b1902ac26b0d21224155328a611d84ad876
parentbe21b8feaa212b441f456439ba8b2564b0985c04 (diff)
downloadgnome-contacts-59ccd63bbae642affeacf5fad56e5dd75fddf762.tar.gz
Window: left title: "All Contacts" -> "Contacts".
Since we're now making the distinction between favorites and "all contacts", make sure that the title isn't confusing.
-rw-r--r--data/ui/contacts-window.ui2
-rw-r--r--src/contacts-window.vala6
2 files changed, 3 insertions, 5 deletions
diff --git a/data/ui/contacts-window.ui b/data/ui/contacts-window.ui
index 9dad2de..19fad4c 100644
--- a/data/ui/contacts-window.ui
+++ b/data/ui/contacts-window.ui
@@ -18,7 +18,7 @@
<object class="GtkHeaderBar" id="left_header">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="title" translatable="yes">All Contacts</property>
+ <property name="title" translatable="yes">Contacts</property>
<property name="show_close_button">True</property>
<style>
<class name="contacts-left-header-bar"/>
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index d3fa02a..c55b922 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -129,6 +129,8 @@ public class Contacts.Window : Gtk.ApplicationWindow {
this.select_cancel_button.visible = (new_state == UiState.SELECTING);
this.list_pane.activate_selection_mode (new_state == UiState.SELECTING);
+ this.left_header.title = (new_state == UiState.SELECTING)? _("Select") : _("Contacts");
+
// Editing UI
this.cancel_button.visible
= this.done_button.visible
@@ -140,13 +142,9 @@ public class Contacts.Window : Gtk.ApplicationWindow {
if (new_state == UiState.SELECTING || new_state.editing ()) {
this.left_header.get_style_context ().add_class ("selection-mode");
this.right_header.get_style_context ().add_class ("selection-mode");
-
- this.left_header.title = (new_state == UiState.SELECTING)? _("Select") : "";
} else {
this.left_header.get_style_context ().remove_class ("selection-mode");
this.right_header.get_style_context ().remove_class ("selection-mode");
-
- this.left_header.title = _("All Contacts");
}
// Save the result