gnome-control-center/panels/common/cc-permission-infobar.ui
Felipe Borges 5bc8ffe8e0 common: Handle when CcPermissionInfobar doesn't have a GPermission
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
2023-07-12 15:57:06 +00:00

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>