[gnome-control-center] notifications: Remove `options_listbox`
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] notifications: Remove `options_listbox`
- Date: Wed, 9 Feb 2022 14:37:43 +0000 (UTC)
commit 2f00725af8fff83e880fedd801ad11e43f33a316
Author: Christopher Davis <christopherdavis gnome org>
Date: Tue Feb 8 21:40:57 2022 -0800
notifications: Remove `options_listbox`
Since CcListRow is now an AdwActionRow subclass,
we don't need to have a custom listbox for the top
group.
panels/notifications/cc-notifications-panel.c | 2 --
panels/notifications/cc-notifications-panel.ui | 30 ++++++++++----------------
2 files changed, 11 insertions(+), 21 deletions(-)
---
diff --git a/panels/notifications/cc-notifications-panel.c b/panels/notifications/cc-notifications-panel.c
index 0e0faab45..c3fd06673 100644
--- a/panels/notifications/cc-notifications-panel.c
+++ b/panels/notifications/cc-notifications-panel.c
@@ -40,7 +40,6 @@ struct _CcNotificationsPanel {
GtkListBox *app_listbox;
CcListRow *lock_screen_row;
- GtkListBox *options_listbox;
CcListRow *dnd_row;
GtkSizeGroup *sizegroup1;
@@ -176,7 +175,6 @@ cc_notifications_panel_class_init (CcNotificationsPanelClass *klass)
gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, app_listbox);
gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, lock_screen_row);
- gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, options_listbox);
gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, dnd_row);
gtk_widget_class_bind_template_child (widget_class, CcNotificationsPanel, sizegroup1);
diff --git a/panels/notifications/cc-notifications-panel.ui b/panels/notifications/cc-notifications-panel.ui
index 4d99ce208..38a8e325d 100644
--- a/panels/notifications/cc-notifications-panel.ui
+++ b/panels/notifications/cc-notifications-panel.ui
@@ -6,25 +6,17 @@
<child>
<object class="AdwPreferencesGroup">
<child>
- <object class="GtkListBox" id="options_listbox">
- <property name="selection_mode">none</property>
- <style>
- <class name="boxed-list"/>
- </style>
- <child>
- <object class="CcListRow" id="dnd_row">
- <property name="title" translatable="yes">_Do Not Disturb</property>
- <property name="use-underline">True</property>
- <property name="show-switch">True</property>
- </object>
- </child>
- <child>
- <object class="CcListRow" id="lock_screen_row">
- <property name="title" translatable="yes">_Lock Screen Notifications</property>
- <property name="use-underline">True</property>
- <property name="show-switch">True</property>
- </object>
- </child>
+ <object class="CcListRow" id="dnd_row">
+ <property name="title" translatable="yes">_Do Not Disturb</property>
+ <property name="use-underline">True</property>
+ <property name="show-switch">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="CcListRow" id="lock_screen_row">
+ <property name="title" translatable="yes">_Lock Screen Notifications</property>
+ <property name="use-underline">True</property>
+ <property name="show-switch">True</property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]