The widget should default to showing the error message when its missing its respective GPermission object, instead of throwing a critical error message. We also hide the "Unlock" button when there's no GPermission set. See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1708
13 lines
540 B
XML
13 lines
540 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcPermissionInfobar" parent="AdwBin">
|
|
<child>
|
|
<object class="AdwBanner" id="banner">
|
|
<property name="revealed">True</property>
|
|
<property name="title" translatable="yes">Error: some settings cannot be unlocked</property>
|
|
<property name="button-label" translatable="yes">_Unlock…</property>
|
|
<signal name="button-clicked" handler="banner_button_clicked_cb" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|