summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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