summaryrefslogtreecommitdiff
path: root/gtk/gtkiconhelperprivate.h
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-09-30 17:26:42 +0200
committerTimm Bäder <mail@baedert.org>2017-10-01 09:19:09 +0200
commita32725bc9ab54320cda3bdf02449937c97121038 (patch)
tree4a2bac48098302c858bb9968dddd3d392217fe1b /gtk/gtkiconhelperprivate.h
parent773973db78eba52e32d273a67387fd360fcdbb20 (diff)
downloadgtk+-a32725bc9ab54320cda3bdf02449937c97121038.tar.gz
iconhelper: Don't inherit from GObject
It's not a GtkCssGadget anymore, it doesn't have any properties or signals either and it's not public. Further, its lifetime is very clear the way it's being used inside GTK+.
Diffstat (limited to 'gtk/gtkiconhelperprivate.h')
-rw-r--r--gtk/gtkiconhelperprivate.h48
1 files changed, 16 insertions, 32 deletions
diff --git a/gtk/gtkiconhelperprivate.h b/gtk/gtkiconhelperprivate.h
index cbaa4b425d..2de38a728b 100644
--- a/gtk/gtkiconhelperprivate.h
+++ b/gtk/gtkiconhelperprivate.h
@@ -28,48 +28,32 @@
G_BEGIN_DECLS
-#define GTK_TYPE_ICON_HELPER gtk_icon_helper_get_type()
-
-#define GTK_ICON_HELPER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- GTK_TYPE_ICON_HELPER, GtkIconHelper))
-
-#define GTK_ICON_HELPER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST ((klass), \
- GTK_TYPE_ICON_HELPER, GtkIconHelperClass))
-
-#define GTK_IS_ICON_HELPER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- GTK_TYPE_ICON_HELPER))
-
-#define GTK_IS_ICON_HELPER_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE ((klass), \
- GTK_TYPE_ICON_HELPER))
-
-#define GTK_ICON_HELPER_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS ((obj), \
- GTK_TYPE_ICON_HELPER, GtkIconHelperClass))
-
typedef struct _GtkIconHelper GtkIconHelper;
-typedef struct _GtkIconHelperClass GtkIconHelperClass;
-typedef struct _GtkIconHelperPrivate GtkIconHelperPrivate;
struct _GtkIconHelper
{
GObject parent_instance;
- GtkIconHelperPrivate *priv;
-};
+ GtkImageDefinition *def;
-struct _GtkIconHelperClass
-{
- GObjectClass parent_class;
+ GtkIconSize icon_size;
+ gint pixel_size;
+
+ guint use_fallback : 1;
+ guint force_scale_pixbuf : 1;
+ guint rendered_surface_is_symbolic : 1;
+
+ GtkWidget *owner;
+ GtkCssNode *node;
+ cairo_surface_t *rendered_surface;
+ GskTexture *texture;
};
-GType gtk_icon_helper_get_type (void) G_GNUC_CONST;
+void gtk_icon_helper_init (GtkIconHelper *self,
+ GtkCssNode *css_node,
+ GtkWidget *owner);
-GtkIconHelper *gtk_icon_helper_new (GtkCssNode *node,
- GtkWidget *owner);
+void gtk_icon_helper_destroy (GtkIconHelper *self);
void _gtk_icon_helper_clear (GtkIconHelper *self);