multi-choice: Add the popover property
This allows a multi choice's label to be clicked to reveal a popover. It is needed by the date chooser, to have a combined month and year choice that can be split in two via a popover. This leaves the indendation purposefully broken to ease reviewing the actual changes.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
78931df46c
commit
b031c9591a
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="GcalMultiChoice" parent="GtkBox">
|
||||
<property name="spacing">6</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="down_button">
|
||||
<property name="icon-name">pan-start-symbolic</property>
|
||||
@@ -12,6 +13,18 @@
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkToggleButton" id="button">
|
||||
<signal name="toggled" handler="button_toggled_cb" swapped="yes"/>
|
||||
<style>
|
||||
<class name="flat"/>
|
||||
<class name="pill"/>
|
||||
<class name="popup"/>
|
||||
</style>
|
||||
<accessibility>
|
||||
<relation name="labelled-by">GcalMultiChoice</relation>
|
||||
<relation name="described-by">GcalMultiChoice</relation>
|
||||
</accessibility>
|
||||
<child>
|
||||
<object class="GtkStack" id="stack">
|
||||
<property name="hexpand">True</property>
|
||||
@@ -37,6 +50,8 @@
|
||||
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="up_button">
|
||||
<property name="icon-name">pan-end-symbolic</property>
|
||||
|
||||
Reference in New Issue
Block a user