diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-03-26 12:54:41 +0000 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-03-26 12:54:41 +0000 |
commit | 3bfdc232f22f0fa5be20e0b603a8287626ec0c2f (patch) | |
tree | e54537047ac72238bc4eb2cd467d12e3a48b6939 /tikzit/src/gtk/PropertyListEditor.m | |
parent | 0f969b6ced7e9ebcbe4bc4e17867ff32d67f27bb (diff) |
Add edge anchor editing to GTK port
Includes functions for testing if an anchor is valid.
Diffstat (limited to 'tikzit/src/gtk/PropertyListEditor.m')
-rw-r--r-- | tikzit/src/gtk/PropertyListEditor.m | 6 |
1 files changed, 3 insertions, 3 deletions
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)); |