calendar-button: Workaround listbox style

Use the 'modelbutton' CSS name to mimic the style of model buttons.

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/849
This commit is contained in:
Georges Basile Stavracas Neto
2023-05-23 19:14:42 -03:00
parent 3c672e0784
commit bd042ba4e8
+3 -6
View File
@@ -57,12 +57,9 @@ make_calendar_row (GcalCalendar *calendar)
GtkWidget *label, *icon, *checkbox, *box, *row;
const GdkRGBA *color;
row = gtk_list_box_row_new ();
/* apply some nice styling */
gtk_widget_add_css_class (row, "button");
gtk_widget_add_css_class (row, "flat");
gtk_widget_add_css_class (row, "menuitem");
row = g_object_new (GTK_TYPE_LIST_BOX_ROW,
"css-name", "modelbutton",
NULL);
/* main box */
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);