gnome-control-center/panels/notifications/cc-notifications-panel.ui
Christopher Davis d61b5bb0b0 cc-notifications-panel: Use AdwPreferences{Page,Group}
libadwaita provides nice pre-built widgets for preferences
pages and groups. We should use them where possible.
2022-01-06 00:51:36 +00:00

56 lines
2.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.12"/>
<template class="CcNotificationsPanel" parent="CcPanel">
<child>
<object class="AdwPreferencesPage">
<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>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="app_group">
<property name="title" translatable="yes" comments="List of applications.">Applications</property>
<child>
<object class="GtkListBox" id="app_listbox">
<property name="selection_mode">none</property>
<signal name="row-activated" handler="select_app" object="CcNotificationsPanel" swapped="yes" />
<style>
<class name="boxed-list"/>
</style>
<accessibility>
<relation name="labelled-by">app_group</relation>
</accessibility>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
<object class="GtkSizeGroup" id="sizegroup1">
<property name="mode">both</property>
</object>
</interface>