gnome-control-center/panels/system/users/cc-users-page.ui
Felipe Borges d52ec68f8d system: Add "Users" panel
This moves the UserAccounts panel to a page in the System panel.

This simplifies a lot of the existing code in the UserAccounts panel.

I did minimal changes to the sub dialogs so that those can be touched
in following changes, making it easier to review this one alone.

The main panel widget is now CcUsersPage, and is an AdwNavigationView
widget that has a default "current_user_page" page. Each page is a
CcUserPage (careful with the one-character difference between these
two classes).

Each CcUserPage has an associated ActUser object.
2024-01-08 13:59:26 +01:00

48 lines
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcUsersPage" parent="AdwNavigationPage">
<property name="tag">system-users-page</property>
<property name="child">
<object class="AdwNavigationView" id="navigation">
<child>
<object class="CcUserPage" id="current_user_page">
<property name="title" translatable="yes">Users</property>
<property name="tag">current-user</property>
<child>
<object class="AdwPreferencesGroup" id="other_users_group">
<property name="visible">False</property>
<property name="title" translatable="yes">Other Users</property>
<child>
<object class="GtkListBox" id="user_list">
<property name="selection-mode">none</property>
<signal name="row-activated" handler="on_user_row_activated" swapped="yes" object="CcUsersPage"/>
<style>
<class name="boxed-list"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkButton" id="add_user_button">
<property name="sensitive">False</property>
<property name="label" translatable="yes">Add User…</property>
<property name="halign">center</property>
<signal name="clicked" handler="add_user" object="CcUsersPage" swapped="yes"/>
<style>
<class name="suggested-action"/>
<class name="pill"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</template>
</interface>