summaryrefslogtreecommitdiff
path: root/gtk/gtkiconhelperprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-03-14 01:56:30 +0100
committerBenjamin Otte <otte@redhat.com>2018-03-16 06:04:44 +0100
commit2016f561766a490791d57d7ee4aebd37e8ccb512 (patch)
treeca981071feb392906426e72443e5ed594fc3ec5e /gtk/gtkiconhelperprivate.h
parent3427639b08a0af92ffe4705bb938581adc4e9b27 (diff)
downloadgtk+-2016f561766a490791d57d7ee4aebd37e8ccb512.tar.gz
iconhelper: Turn into a GObject
Diffstat (limited to 'gtk/gtkiconhelperprivate.h')
-rw-r--r--gtk/gtkiconhelperprivate.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/gtk/gtkiconhelperprivate.h b/gtk/gtkiconhelperprivate.h
index ce260b3f68..9b8357cf39 100644
--- a/gtk/gtkiconhelperprivate.h
+++ b/gtk/gtkiconhelperprivate.h
@@ -28,31 +28,12 @@
G_BEGIN_DECLS
-typedef struct _GtkIconHelper GtkIconHelper;
+#define GTK_TYPE_ICON_HELPER (gtk_icon_helper_get_type())
-struct _GtkIconHelper
-{
- GObject parent_instance;
+G_DECLARE_FINAL_TYPE(GtkIconHelper, gtk_icon_helper, GTK, ICON_HELPER, GObject)
- GtkImageDefinition *def;
-
- gint pixel_size;
-
- guint use_fallback : 1;
- guint force_scale_pixbuf : 1;
- guint texture_is_symbolic : 1;
-
- GtkWidget *owner;
- GtkCssNode *node;
- GdkPaintable *paintable;
- int texture_scale;
-};
-
-void gtk_icon_helper_init (GtkIconHelper *self,
- GtkCssNode *css_node,
- GtkWidget *owner);
-
-void gtk_icon_helper_destroy (GtkIconHelper *self);
+GtkIconHelper *gtk_icon_helper_new (GtkCssNode *css_node,
+ GtkWidget *owner);
void _gtk_icon_helper_clear (GtkIconHelper *self);