gnome-control-center/panels/common/cc-permission-infobar.ui
Felipe Borges 5d2a884ac7 common: Introduce "CcPermissionInfobar" widget
The "CcPermissionInfobar" widget is a more descriptive way to
communicate that some Settings panel needs authentication in order
to perform certain actions.

This widget doesn't handle the permissions (as in GPermission)
itself. It needs to be binded to an existing instance of GPermission,
and it will react to the permission's state (show when the current
user is not authorized, and hide when the user is authorized).

This is part of a big set of changes that aim to set a consistent
authentication method accross Settings panels.

See #685, #556, and #771
2020-01-06 14:43:11 +00:00

65 lines
2.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcPermissionInfobar" parent="GtkRevealer">
<property name="reveal-child">True</property>
<property name="valign">start</property>
<child>
<object class="GtkInfoBar">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child internal-child="action_area">
<object class="GtkButtonBox">
<property name="can-focus">False</property>
<property name="layout-style">end</property>
<property name="border-width">10</property>
<child>
<object class="GtkLockButton" id="lock_button">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="label" translatable="yes">Unlock…</property>
</object>
</child>
</object>
</child>
<child internal-child="content_area">
<object class="GtkBox">
<property name="visible">True</property>
<property name="border-width">10</property>
<property name="spacing">10</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="icon-name">system-lock-screen-symbolic</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Unlock to Change Settings</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Some settings must be unlocked before they can be changed.</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>