sidebar: add calendar popover natural width
This commit is contained in:
@@ -96,6 +96,7 @@ create_row_func (gpointer data,
|
|||||||
label = gtk_label_new (gcal_calendar_get_name (calendar));
|
label = gtk_label_new (gcal_calendar_get_name (calendar));
|
||||||
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
|
gtk_label_set_xalign (GTK_LABEL (label), 0.0);
|
||||||
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
|
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);
|
||||||
|
gtk_widget_set_tooltip_text (label, gcal_calendar_get_name (calendar));
|
||||||
gtk_widget_set_hexpand (label, TRUE);
|
gtk_widget_set_hexpand (label, TRUE);
|
||||||
|
|
||||||
/* checkbox */
|
/* checkbox */
|
||||||
|
|||||||
@@ -55,20 +55,27 @@
|
|||||||
<object class="GtkScrolledWindow">
|
<object class="GtkScrolledWindow">
|
||||||
<property name="hscrollbar_policy">never</property>
|
<property name="hscrollbar_policy">never</property>
|
||||||
<property name="max_content_height">450</property>
|
<property name="max_content_height">450</property>
|
||||||
|
<property name="max_content_width">800</property>
|
||||||
<property name="propagate-natural-height">True</property>
|
<property name="propagate-natural-height">True</property>
|
||||||
|
<property name="propagate-natural-width">True</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkListBox" id="calendar_listbox">
|
<object class="AdwClamp">
|
||||||
<property name="hexpand">True</property>
|
<property name="maximum-size">800</property>
|
||||||
<property name="selection_mode">none</property>
|
<property name="tightening-threshold">800</property>
|
||||||
<signal name="row-activated" handler="on_listbox_row_activated_cb" object="GcalCalendarButton" swapped="no"/>
|
<child>
|
||||||
<style>
|
<object class="GtkListBox" id="calendar_listbox">
|
||||||
<class name="calendar-list"/>
|
<property name="hexpand">True</property>
|
||||||
</style>
|
<property name="selection_mode">none</property>
|
||||||
|
<signal name="row-activated" handler="on_listbox_row_activated_cb" object="GcalCalendarButton" swapped="no"/>
|
||||||
|
<style>
|
||||||
|
<class name="calendar-list"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
Reference in New Issue
Block a user