summaryrefslogtreecommitdiff
path: root/gtk/gtksnapshotprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-03-10 20:52:06 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-03-11 00:31:44 -0500
commite23f641e491fd85371a613dde7f90fee8924657d (patch)
tree1bcd10f8b5cf083ed47a2c7c0593d8c32a3f9258 /gtk/gtksnapshotprivate.h
parent7eb3736760c4b05e89aebbb833b4ca9917f280ce (diff)
downloadgtk+-e23f641e491fd85371a613dde7f90fee8924657d.tar.gz
GtkSnapshot: Implement the builder pattern
Make GtkSnapshot a refcounted boxed type, and add public API that follows the builder pattern described here: https://blogs.gnome.org/otte/2018/02/03/builders/
Diffstat (limited to 'gtk/gtksnapshotprivate.h')
-rw-r--r--gtk/gtksnapshotprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtksnapshotprivate.h b/gtk/gtksnapshotprivate.h
index 1319df7d7b..9a8659063c 100644
--- a/gtk/gtksnapshotprivate.h
+++ b/gtk/gtksnapshotprivate.h
@@ -81,6 +81,7 @@ struct _GtkSnapshotState {
};
struct _GtkSnapshot {
+ int ref_count;
gboolean record_names;
GskRenderer *renderer;
GArray *state_stack;