[gnome-contacts] Window: left title: "All Contacts" -> "Contacts".
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Window: left title: "All Contacts" -> "Contacts".
- Date: Thu, 18 Jan 2018 23:15:14 +0000 (UTC)
commit 59ccd63bbae642affeacf5fad56e5dd75fddf762
Author: Niels De Graef <nielsdegraef gmail com>
Date: Fri Jan 19 00:13:46 2018 +0100
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.
data/ui/contacts-window.ui | 2 +-
src/contacts-window.vala | 6 ++----
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]