From 0a47b1c62c929ccff2a9f803455b94d9024ac051 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 14 Dec 2012 12:26:35 +0000 Subject: Factor out pixbufFromSurface from style selectors It's silly to have two copies of the same code in two different files. --- tikzit/src/gtk/gtkhelpers.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tikzit/src/gtk/gtkhelpers.h') 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 +#import 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 -- cgit v1.2.3