From dc720cc5d5e3f5b2f3d8119947a9dd8c69f4b2df Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Mon, 4 Feb 2013 18:08:38 +0000 Subject: GTK: prevent the user from creating invalid tikz The free-form entry fields (graph element properties and node labels) are a potential source of invalid tikz code. Since we quote any dodgy-looking text with { and }, we just need to make sure there are no unmatched curly braces entered in those fields. This will turn the entry widgets red when there are unmatched braces, and refuse to make use of any such values. --- tikzit/src/gtk/TZFoundation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tikzit/src/gtk/TZFoundation.h') diff --git a/tikzit/src/gtk/TZFoundation.h b/tikzit/src/gtk/TZFoundation.h index 6f42700..f275004 100644 --- a/tikzit/src/gtk/TZFoundation.h +++ b/tikzit/src/gtk/TZFoundation.h @@ -24,5 +24,6 @@ #import "NSFileManager+Utils.h" #import "NSString+Glib.h" #import "NSString+LatexConstants.h" +#import "NSString+Tikz.h" // vim:ft=objc:ts=8:et:sts=4:sw=4 -- cgit v1.2.3