summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/gtkhelpers.h
diff options
context:
space:
mode:
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);