summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/EdgeStyleSelector.m
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-04-18 13:45:43 +0100
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-04-18 13:45:43 +0100
commit2f6a98730f6af18a71b31c72468042f3b5b81915 (patch)
tree63dc3ece2a7ca80be03f5c32add0edc3d9693ce0 /tikzit/src/gtk/EdgeStyleSelector.m
parentb9c39efd55a5dd03a52e0ac3da191fed763f53db (diff)
Add edge colours
Diffstat (limited to 'tikzit/src/gtk/EdgeStyleSelector.m')
-rw-r--r--tikzit/src/gtk/EdgeStyleSelector.m15
1 files changed, 15 insertions, 0 deletions
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 {