gnome-control-center/panels/common/cc-permission-infobar.ui
Christopher Davis d25c0e345d general: Use AdwBanner in CcPermissionInfobar
AdwBanner is a new adaptive widget that replaces GtkInfoBar.
AdwBanner adapts better to mobile sizes and has an API
that fits with how we use infobars.

This commit changes CcPermissionInfobar to use an AdwBanner
internally instead of a GtkInfoBar. It also re-implements
part of GtkLockButton, as AdwBanner does not support adding
arbitrary widgets.
2023-04-11 12:23:16 +00:00

11 lines
389 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcPermissionInfobar" parent="AdwBin">
<child>
<object class="AdwBanner" id="banner">
<property name="button-label" translatable="yes">_Unlock…</property>
<signal name="button-clicked" handler="banner_button_clicked_cb" swapped="yes"/>
</object>
</child>
</template>
</interface>