diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-11-30 07:54:27 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-11-30 07:54:27 -0500 |
commit | b8b33d1f364bf8a635a24eb617d0ea6a99e4c42a (patch) | |
tree | d40f8ca0e03a015505162d742fba2f3961d1d09b /gtk/gdkpixbufutilsprivate.h | |
parent | bd1a9c1afe5c30c5f95d6b3b46bd53db4094d5d2 (diff) | |
download | gtk+-b8b33d1f364bf8a635a24eb617d0ea6a99e4c42a.tar.gz |
Make texture variants of some pixbuf utils
This will let us avoid direct pixbuf use in some places.
Diffstat (limited to 'gtk/gdkpixbufutilsprivate.h')
-rw-r--r-- | gtk/gdkpixbufutilsprivate.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk/gdkpixbufutilsprivate.h b/gtk/gdkpixbufutilsprivate.h index 8e398e1be0..a11ce9bc96 100644 --- a/gtk/gdkpixbufutilsprivate.h +++ b/gtk/gdkpixbufutilsprivate.h @@ -18,7 +18,7 @@ #ifndef __GDK_PIXBUF_UTILS_PRIVATE_H__ #define __GDK_PIXBUF_UTILS_PRIVATE_H__ -#include <gdk-pixbuf/gdk-pixbuf.h> +#include <gdk/gdk.h> G_BEGIN_DECLS @@ -46,6 +46,16 @@ GdkPixbuf *gtk_make_symbolic_pixbuf_from_resource (const char *path, int height, double scale, GError **error); +GdkTexture *gtk_make_symbolic_texture_from_file (GFile *file, + int width, + int height, + double scale, + GError **error); +GdkTexture *gtk_make_symbolic_texture_from_resource (const char *path, + int width, + int height, + double scale, + GError **error); G_END_DECLS #endif /* __GDK_PIXBUF_UTILS_PRIVATE_H__ */ |