window, calendar-button: Make text buttons shrinkable

Lets buttons shrink to fit the size they're given. This
is important for text buttons so they don't cause our
content to overflow our window.
This commit is contained in:
Christopher Davis
2023-06-17 20:18:07 +00:00
committed by Georges Basile Stavracas Neto
parent 11abf3460b
commit 832b9132a2
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Calendars</property>
<property name="popover">popover</property>
<property name="can-shrink">True</property>
<style>
<class name="image-button" />
</style>
+2
View File
@@ -162,6 +162,7 @@
<property name="label" translatable="yes">_Today</property>
<property name="use-underline">True</property>
<property name="icon-name">calendar-today-symbolic</property>
<property name="can-shrink">True</property>
</object>
</property>
</object>
@@ -200,6 +201,7 @@
<property name="label" translatable="yes">_Today</property>
<property name="use-underline">True</property>
<property name="icon-name">calendar-today-symbolic</property>
<property name="can-shrink">True</property>
</object>
</property>
</object>