From 2f6a98730f6af18a71b31c72468042f3b5b81915 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Wed, 18 Apr 2012 13:45:43 +0100 Subject: Add edge colours --- tikzit/src/gtk/EdgeStyleSelector.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tikzit/src/gtk/EdgeStyleSelector.m') diff --git a/tikzit/src/gtk/EdgeStyleSelector.m b/tikzit/src/gtk/EdgeStyleSelector.m index b6139b8..544ed98 100644 --- a/tikzit/src/gtk/EdgeStyleSelector.m +++ b/tikzit/src/gtk/EdgeStyleSelector.m @@ -446,6 +446,18 @@ enum { forKeyPath:@"decorationStyle" options:0 context:NULL]; + [style addObserver:self + forKeyPath:@"colorRGB.red" + options:0 + context:NULL]; + [style addObserver:self + forKeyPath:@"colorRGB.green" + options:0 + context:NULL]; + [style addObserver:self + forKeyPath:@"colorRGB.blue" + options:0 + context:NULL]; } - (void) stopObservingStyle:(EdgeStyle*)style { @@ -454,6 +466,9 @@ enum { [style removeObserver:self forKeyPath:@"headStyle"]; [style removeObserver:self forKeyPath:@"tailStyle"]; [style removeObserver:self forKeyPath:@"decorationStyle"]; + [style removeObserver:self forKeyPath:@"colorRGB.red"]; + [style removeObserver:self forKeyPath:@"colorRGB.green"]; + [style removeObserver:self forKeyPath:@"colorRGB.blue"]; } - (void) reloadStyles { -- cgit v1.2.3