sidebar: add calendar popover natural width

This commit is contained in:
Amey
2025-01-25 04:04:38 +05:30
parent 47fd758d01
commit 933dc567e7
2 changed files with 16 additions and 8 deletions
+1
View File
@@ -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 */
+8 -1
View File
@@ -55,7 +55,13 @@
<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>
<object class="AdwClamp">
<property name="maximum-size">800</property>
<property name="tightening-threshold">800</property>
<child> <child>
<object class="GtkListBox" id="calendar_listbox"> <object class="GtkListBox" id="calendar_listbox">
<property name="hexpand">True</property> <property name="hexpand">True</property>
@@ -68,7 +74,8 @@
</child> </child>
</object> </object>
</child> </child>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>