From 3bfdc232f22f0fa5be20e0b603a8287626ec0c2f Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 26 Mar 2013 12:54:41 +0000 Subject: Add edge anchor editing to GTK port Includes functions for testing if an anchor is valid. --- tikzit/src/gtk/PropertyListEditor.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tikzit/src/gtk/PropertyListEditor.m') diff --git a/tikzit/src/gtk/PropertyListEditor.m b/tikzit/src/gtk/PropertyListEditor.m index 428050e..9760618 100644 --- a/tikzit/src/gtk/PropertyListEditor.m +++ b/tikzit/src/gtk/PropertyListEditor.m @@ -245,7 +245,7 @@ static void selection_changed_cb (GtkTreeSelection *selection, @implementation PropertyListEditor (Private) - (void) updatePath:(gchar*)pathStr withValue:(NSString*)newText { - if (![newText isValidTikz]) + if (![newText isValidTikzPropertyNameOrValue]) return; GtkTreeIter iter; @@ -276,7 +276,7 @@ static void selection_changed_cb (GtkTreeSelection *selection, } - (void) updatePath:(gchar*)pathStr withName:(NSString*)newText { - if (![newText isValidTikz]) + if (![newText isValidTikzPropertyNameOrValue]) return; GtkTreeIter iter; @@ -478,7 +478,7 @@ static void text_changed_cb (GtkEditable *editable, PropertyListEditor *pane) NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSString *newValue = gtk_editable_get_string (editable, 0, -1); - if (![newValue isValidTikz]) { + if (![newValue isValidTikzPropertyNameOrValue]) { widget_set_error (GTK_WIDGET (editable)); } else { widget_clear_error (GTK_WIDGET (editable)); -- cgit v1.2.3