widget-factory: Cosmetics
authorMatthias Clasen <mclasen@redhat.com>
Sun, 17 May 2020 01:54:14 +0000 (21:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 17 May 2020 01:54:14 +0000 (21:54 -0400)
Add a frame around the white background in the background
selection dialog. Otherwise, it is not really visible.

demos/widget-factory/widget-factory.c

index 493ae60af95b16ff80c54144f938c5b10cba8e8e..21ce18c572b76e78a0fa7d84fb96273bd941bbfe 100644 (file)
@@ -1148,6 +1148,7 @@ populate_flowbox (GtkWidget *flowbox)
   pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 110, 70);
   gdk_pixbuf_fill (pixbuf, 0xffffffff);
   child = gtk_picture_new_for_pixbuf (pixbuf);
+  gtk_widget_add_css_class (child, "frame");
   gtk_flow_box_insert (GTK_FLOW_BOX (flowbox), child, -1);
 
   for (i = 0; i < G_N_ELEMENTS (resources); i++)