summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/gtkhelpers.h
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-17 16:02:59 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-17 16:02:59 +0000
commitbde0c0da1c8d11433d37e905dc9bb4b17e7f6523 (patch)
treec748ec5f68bf27128c5fb91dbd89611740f044a5 /tikzit/src/gtk/gtkhelpers.h
parent352d217c8805ba3f7de6d4e710a0b4bb3e2a307b (diff)
Move the objc object release GFunc into gtkhelpers
Diffstat (limited to 'tikzit/src/gtk/gtkhelpers.h')
-rw-r--r--tikzit/src/gtk/gtkhelpers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tikzit/src/gtk/gtkhelpers.h b/tikzit/src/gtk/gtkhelpers.h
index 81a4d93..59b69bc 100644
--- a/tikzit/src/gtk/gtkhelpers.h
+++ b/tikzit/src/gtk/gtkhelpers.h
@@ -24,6 +24,14 @@
#include <gtk/gtk.h>
#import <gdk-pixbuf/gdk-pixbuf.h>
+/**
+ * Releases the Objective-C object pointed to by data
+ *
+ * Intended for use as a cleanup function in Glib/GObject-based
+ * code.
+ */
+void release_obj (gpointer data);
+
NSString * gtk_editable_get_string (GtkEditable *editable, gint start, gint end);
GdkRectangle gdk_rectangle_from_ns_rect (NSRect rect);