[gnome-control-center] notifications: Change switch label to Do Not Disturb



commit 90e0774a19d2d93e824f61f8e2e3319e74ebd8fd
Author: Allan Day <allanpday gmail com>
Date:   Mon Jan 27 17:50:41 2020 +0000

    notifications: Change switch label to Do Not Disturb
    
    !97 added a do not disturb switch to GNOME Shell. This works by
    changing the org.gnome.desktop.notifications.show-banners setting.
    The switch that controls this setting in the control center should
    therefore use the same Do Not Disturb label as the switch in the
    shell.

 panels/notifications/cc-notifications-panel.c  | 6 +++---
 panels/notifications/cc-notifications-panel.ui | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index da38f6a54..e630619e6 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -42,7 +42,7 @@ struct _CcNotificationsPanel {
   GtkScrolledWindow *main_scrolled_window;
   GtkBox            *main_box;
   GtkListBox        *options_listbox;
-  GtkSwitch         *popups_switch;
+  GtkSwitch         *dnd_switch;
   GtkSizeGroup      *sizegroup1;
 
   GSettings         *master_settings;
@@ -180,7 +180,7 @@ cc_notifications_panel_init (CcNotificationsPanel *panel)
   panel->master_settings = g_settings_new (MASTER_SCHEMA);
 
   g_settings_bind (panel->master_settings, "show-banners",
-                   panel->popups_switch,
+                   panel->dnd_switch,
                    "active", G_SETTINGS_BIND_DEFAULT);
   g_settings_bind (panel->master_settings, "show-in-lock-screen",
                    panel->lock_screen_switch,
@@ -244,7 +244,7 @@ cc_notifications_panel_class_init (CcNotificationsPanelClass *klass)
   gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, main_scrolled_window);
   gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, main_box);
   gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, options_listbox);
-  gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, popups_switch);
+  gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, dnd_switch);
   gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, sizegroup1);
 
   gtk_widget_class_bind_template_callback (widget_class, keynav_failed);
diff --git a/panels/notifications/cc-notifications-panel.ui b/panels/notifications/cc-notifications-panel.ui
index 9bddb7da6..d3df1806d 100644
--- a/panels/notifications/cc-notifications-panel.ui
+++ b/panels/notifications/cc-notifications-panel.ui
@@ -67,9 +67,9 @@
                                         <property name="hexpand">True</property>
                                         <property name="ellipsize">end</property>
                                         <property name="xalign">0</property>
-                                        <property name="label" translatable="yes">Notification 
_Popups</property>
+                                        <property name="label" translatable="yes">_Do Not Disturb</property>
                                         <property name="use_underline">True</property>
-                                        <property name="mnemonic_widget">popups_switch</property>
+                                        <property name="mnemonic_widget">dnd_switch</property>
                                       </object>
                                       <packing>
                                         <property name="expand">False</property>
@@ -78,7 +78,7 @@
                                       </packing>
                                     </child>
                                     <child>
-                                      <object class="GtkSwitch" id="popups_switch">
+                                      <object class="GtkSwitch" id="dnd_switch">
                                         <property name="visible">True</property>
                                         <property name="can_focus">True</property>
                                         <property name="halign">end</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]