summaryrefslogtreecommitdiff
path: root/fluid/Fl_Widget_Type.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-11-03 20:43:19 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-11-03 20:43:19 +0000
commit1a5288e8feb3673fa864d4aa4e4c09c9577a0670 (patch)
treea23a587c1f13fcc490ae35e57dc0735007d9ee01 /fluid/Fl_Widget_Type.cxx
parent5cdf984737d7a7f55006e3ca04f28451dfe2099c (diff)
Fluid Source Code preview panel with automatic refresh and selected object code highlighting.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4630 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Widget_Type.cxx')
-rw-r--r--fluid/Fl_Widget_Type.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx
index 19bf16926..accaa3a2a 100644
--- a/fluid/Fl_Widget_Type.cxx
+++ b/fluid/Fl_Widget_Type.cxx
@@ -1710,6 +1710,7 @@ Fl_Type *Fl_Type::current;
extern void redraw_overlays();
extern void redraw_browser();
+extern void update_sourceview_position();
// Called when ui changes what objects are selected:
// p is selected object, null for all deletions (we must throw away
@@ -1742,6 +1743,8 @@ void selection_changed(Fl_Type *p) {
redraw_overlays();
// load the panel with the new settings:
load_panel();
+ // update the source viewer to show the code for the selected object
+ update_sourceview_position();
}
////////////////////////////////////////////////////////////////