summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2007-02-08 01:28:50 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2007-02-08 01:28:50 +0000
commit44fab0180e308c13c03aa67ee155e18950741e29 (patch)
treeb360c7464324cfa9529402242a7a3dc8cfcecf07 /src
parent07fd0cc413a1e534e219b8ea060330febbf3d1c6 (diff)
Fix hoving over links (STR #1588)
Use blue as the default link color, not magenta. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5669 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Help_View.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx
index 694e11ed6..9a36d7f4a 100644
--- a/src/Fl_Help_View.cxx
+++ b/src/Fl_Help_View.cxx
@@ -1110,7 +1110,7 @@ Fl_Help_View::format()
size_ = 0;
bgcolor_ = color();
textcolor_ = textcolor();
- linkcolor_ = fl_contrast(FL_MAGENTA, color());
+ linkcolor_ = fl_contrast(FL_BLUE, color());
tc = rc = bgcolor_;
@@ -1298,7 +1298,7 @@ Fl_Help_View::format()
textcolor_ = get_color(get_attr(attrs, "TEXT", attr, sizeof(attr)),
textcolor());
linkcolor_ = get_color(get_attr(attrs, "LINK", attr, sizeof(attr)),
- fl_contrast(FL_MAGENTA, color()));
+ fl_contrast(FL_BLUE, color()));
}
else if (strcasecmp(buf, "BR") == 0)
{
@@ -2785,16 +2785,11 @@ Fl_Help_View::handle(int event) // I - Event to handle
fl_cursor(FL_CURSOR_DEFAULT);
break;
case FL_MOVE:
- if (Fl_Group::handle(event))
- return 1;
- if (find_link(xx, yy))
- fl_cursor(FL_CURSOR_HAND);
- else
- fl_cursor(FL_CURSOR_DEFAULT);
+ if (find_link(xx, yy)) fl_cursor(FL_CURSOR_HAND);
+ else fl_cursor(FL_CURSOR_DEFAULT);
return 1;
case FL_PUSH:
- if (Fl_Group::handle(event))
- return 1;
+ if (Fl_Group::handle(event)) return 1;
linkp = find_link(xx, yy);
if (linkp) {
fl_cursor(FL_CURSOR_HAND);
@@ -2842,8 +2837,8 @@ Fl_Help_View::handle(int event) // I - Event to handle
char ascii = Fl::event_text()[0];
switch (ascii) {
case ctrl('A'): select_all(); redraw(); return 1;
+ case ctrl('C'):
case ctrl('X'): end_selection(1); return 1;
- case ctrl('C'): end_selection(1); return 1;
}
break; }
}