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.
This commit is contained in:
parent
c59f9b3aac
commit
90e0774a19
2 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue