[gtk/magnifier-shadow: 3/3] builder-tool: screenshot shadows




commit b7f5f1ecee467650cd804d604f50988298c81d64
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 5 15:55:44 2022 -0400

    builder-tool: screenshot shadows
    
    This is usually what is wanted.

 tools/gtk-builder-tool-screenshot.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tools/gtk-builder-tool-screenshot.c b/tools/gtk-builder-tool-screenshot.c
index 17c3731d98..4cc260b2ad 100644
--- a/tools/gtk-builder-tool-screenshot.c
+++ b/tools/gtk-builder-tool-screenshot.c
@@ -100,6 +100,7 @@ snapshot_widget (GtkWidget *widget)
    * to delay the snapshot.
    */
   paintable = gtk_widget_paintable_new (widget);
+  gtk_widget_paintable_set_observed_area (GTK_WIDGET_PAINTABLE (paintable), 
GTK_WIDGET_PAINTABLE_AREA_RENDERED);
   g_signal_connect (paintable, "invalidate-contents", G_CALLBACK (draw_paintable), &texture);
   g_main_loop_run (loop);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]