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.
11 lines
389 B
XML
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>
|