Files
federated-calendar/src/gui/gcal-toolbar-end.ui
T
Georges Basile Stavracas Neto d6a216d0fa gui: Propagate context to GcalSearchButton
The people who introduced this code were not careful enough to
make sure the code they removed from GcalWindow was added back
in GcalToolbarEnd.

They also simply commented out some code instead of properly
reimplementing that.

I regret having trusted their code :(

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/880
2023-03-05 11:41:35 -03:00

28 lines
1.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GcalToolbarEnd" parent="AdwBin">
<property name="child">
<object class="GtkBox">
<property name="spacing">6</property>
<child>
<object class="GcalSearchButton" id="search_button">
<property name="tooltip_text" translatable="yes" context="tooltip">Search for events</property>
<binding name="context">
<lookup type="GcalWindow" name="context">
<lookup type="GtkWidget" name="root">GcalToolbarEnd</lookup>
</lookup>
</binding>
</object>
</child>
<child>
<object class="GtkButton">
<property name="icon-name">list-add-symbolic</property>
<property name="action-name">win.new-event</property>
<property name="tooltip_text" translatable="yes" context="tooltip">Add a new event</property>
</object>
</child>
</object>
</property>
</template>
</interface>