diff options
author | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-14 12:26:35 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@cs.ox.ac.uk> | 2012-12-14 12:26:35 +0000 |
commit | 0a47b1c62c929ccff2a9f803455b94d9024ac051 (patch) | |
tree | 377849aa014ba9441a5d57ac775f2cf5e93542d6 /tikzit/src/gtk/gtkhelpers.h | |
parent | 05ce879e69da6aca5982bf95c2f055d4baecea5b (diff) |
Factor out pixbufFromSurface from style selectors
It's silly to have two copies of the same code in two different files.
Diffstat (limited to 'tikzit/src/gtk/gtkhelpers.h')
-rw-r--r-- | tikzit/src/gtk/gtkhelpers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tikzit/src/gtk/gtkhelpers.h b/tikzit/src/gtk/gtkhelpers.h index 418d234..a84e02b 100644 --- a/tikzit/src/gtk/gtkhelpers.h +++ b/tikzit/src/gtk/gtkhelpers.h @@ -22,6 +22,7 @@ // #import "TZFoundation.h" #include <gtk/gtk.h> +#import <gdk-pixbuf/gdk-pixbuf.h> void gtk_table_adjust_attach (GtkTable *table, GtkWidget *widget, @@ -46,4 +47,7 @@ gint tz_hijack_key_press (GtkWindow *win, GdkEventKey *event, gpointer user_data); +// Equivalent of GTK+3's gdk_pixbuf_get_from_surface() +GdkPixbuf * pixbuf_get_from_surface(cairo_surface_t *surface); + // vim:ft=objc:sts=2:sw=2:et |