[dconf-editor] Improve a notification.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Improve a notification.
- Date: Wed, 2 Jan 2019 14:36:42 +0000 (UTC)
commit 8c4b6d819eff07e108bf78112bec18e84ce39a69
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Jan 1 18:50:47 2019 +0100
Improve a notification.
editor/dconf-window.vala | 3 ++-
editor/help-overlay.ui | 7 +++++++
editor/notifications-revealer.ui | 9 ++++++++-
3 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 397add6..06b17f0 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -365,7 +365,8 @@ private class DConfWindow : BrowserWindow
{
if (modifications_handler.has_pending_changes ())
{
- show_notification ("There are pending changes. Use <ctrl><shift>q to apply changes and quit.");
+ /* Translators: notification text, after a user Ctrl+Q keyboard action; same way to spell the
shortcut as in the Settings application */
+ show_notification (_("There are pending changes. Use Shift+Ctrl+Q to apply changes and quit, or
Alt+F4 to dismiss changes and quit."));
return false;
}
destroy ();
diff --git a/editor/help-overlay.ui b/editor/help-overlay.ui
index 09f7022..38e0733 100644
--- a/editor/help-overlay.ui
+++ b/editor/help-overlay.ui
@@ -262,6 +262,13 @@
<property name="accelerator"><Primary><Shift>q</property>
</object>
</child>
+ <child>
+ <object class="GtkShortcutsShortcut"> <!-- TODO doesn't quit if a dialog is opened -->
+ <property name="visible">True</property>
+ <property name="title" translatable="yes" context="shortcut window">Dismiss pending changes
and quit</property>
+ <property name="accelerator"><Alt>F4</property>
+ </object>
+ </child>
</object>
</child>
</object>
diff --git a/editor/notifications-revealer.ui b/editor/notifications-revealer.ui
index ef70916..085ce7a 100644
--- a/editor/notifications-revealer.ui
+++ b/editor/notifications-revealer.ui
@@ -13,16 +13,23 @@
<child>
<object class="GtkGrid">
<property name="visible">True</property>
- <property name="column-spacing">20</property>
+ <property name="column-spacing">6</property>
<child>
<object class="GtkLabel" id="notification_label">
<property name="visible">True</property>
+ <property name="xalign">0</property>
<property name="wrap">True</property>
</object>
</child>
+ <child>
+ <object class="GtkSeparator">
+ <property name="visible">True</property>
+ </object>
+ </child>
<child>
<object class="GtkButton">
<property name="visible">True</property>
+ <property name="valign">center</property>
<property name="focus-on-click">False</property>
<property name="relief">none</property>
<property name="action-name">notification.hide</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]