diff options
author | Benjamin Otte <otte@redhat.com> | 2012-01-04 04:17:38 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:37:58 +0100 |
commit | fce45757cb7eae2a85be7b26b0299ebaac3721c0 (patch) | |
tree | 44d6f1ae4138289992b4f31865f63081dee9fadd /gtk/gtkborderimageprivate.h | |
parent | 9b47a6a4e3b927a75c5b0f16a4e43c3b6de3bccd (diff) | |
download | gtk+-fce45757cb7eae2a85be7b26b0299ebaac3721c0.tar.gz |
borderimage: Change memory management
Making it a on-stack object simplifies things a lot.
Diffstat (limited to 'gtk/gtkborderimageprivate.h')
-rw-r--r-- | gtk/gtkborderimageprivate.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/gtk/gtkborderimageprivate.h b/gtk/gtkborderimageprivate.h index a9d19d0e27..09708111bd 100644 --- a/gtk/gtkborderimageprivate.h +++ b/gtk/gtkborderimageprivate.h @@ -33,14 +33,17 @@ G_BEGIN_DECLS typedef struct _GtkBorderImage GtkBorderImage; -GtkBorderImage * _gtk_border_image_new (GtkCssImage *source, - GtkBorder *slice, - GtkBorder *width, - GtkCssBorderImageRepeat *repeat); -GtkBorderImage * _gtk_border_image_new_for_engine (GtkThemingEngine *engine); - -GtkBorderImage * _gtk_border_image_ref (GtkBorderImage *image); -void _gtk_border_image_unref (GtkBorderImage *image); +struct _GtkBorderImage { + GtkCssImage *source; + + GtkBorder slice; + gboolean has_width; + GtkBorder width; + GtkCssBorderImageRepeat repeat; +}; + +gboolean _gtk_border_image_init (GtkBorderImage *image, + GtkThemingEngine *engine); void _gtk_border_image_render (GtkBorderImage *image, GtkBorder *border_width, |