[gnome-contacts] Window: no more "Select" title in left header.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Window: no more "Select" title in left header.
- Date: Sun, 21 Jan 2018 10:50:12 +0000 (UTC)
commit e7b07bd91e34d1ee94da38d6a928682d0a78d8c1
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Jan 21 11:40:21 2018 +0100
Window: no more "Select" title in left header.
Either no-one is selected => we're not in selection mode,
or some people are selected => show how much (handled by
the contacts_marked signal)
src/contacts-window.vala | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index 25ce666..36393c9 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -95,9 +95,7 @@ public class Contacts.Window : Gtk.ApplicationWindow {
list_pane.delete_contacts.connect (list_pane_delete_contacts_cb);
list_pane.contacts_marked.connect ((nr_contacts) => {
- if (nr_contacts == 0)
- this.left_header.title = _("Select");
- else
+ if (nr_contacts != 0)
this.left_header.title = ngettext ("%d Selected", "%d Selected", nr_contacts)
.printf (nr_contacts);
});
@@ -128,7 +126,8 @@ public class Contacts.Window : Gtk.ApplicationWindow {
// Selecting UI
this.select_cancel_button.visible = (this.state == UiState.SELECTING);
- this.left_header.title = (this.state == UiState.SELECTING)? _("Select") : _("Contacts");
+ if (this.state != UiState.SELECTING)
+ this.left_header.title = _("Contacts");
// Editing UI
this.cancel_button.visible
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]