aboutdialog: ensure the credits page uses the "view" style class

Since not every theme renders a background for a GtkViewport (and
Adwaita master doesn't), ensure the grid+viewport we use to emulate a
text view here uses the "view" style class.
This commit is contained in:
Cosimo Cecchi 2012-12-21 17:52:03 +01:00
parent cd5fdc1e74
commit 81fa183b79

View File

@ -2389,6 +2389,8 @@ create_credits_page (GtkAboutDialog *about)
gtk_widget_set_halign (grid, GTK_ALIGN_CENTER);
gtk_widget_set_valign (grid, GTK_ALIGN_START);
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), grid);
gtk_style_context_add_class (gtk_widget_get_style_context (gtk_bin_get_child (GTK_BIN (sw))),
GTK_STYLE_CLASS_VIEW);
row = 0;