summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-01-02 14:22:49 +0100
committerjcid <devnull@localhost>2008-01-02 14:22:49 +0100
commit5ca49ae150a68fd45fdfefc853005e9ef08a6982 (patch)
tree272eeb10995a63c7892f06eb384b80c80f91741e
parentb33e0ab7a06ab6b2e7da7e0b7ece4b39d2ce0a3f (diff)
- Added a redraw(DAMAGE_HIGHLIGHT) call to Back, Forw and Stop buttons.
-rw-r--r--ChangeLog1
-rw-r--r--src/ui.cc4
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index eb444476..6be2a2df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -90,6 +90,7 @@ dillo-fltk2
- Switched dns.c from gethostbyname* to getaddrinfo (& removed libc5 code).
- Made "New browser window" inherit the panel style of its parent.
- Made TopGroup a PackedGroup, simplifying UI code and removing workarounds.
+ - Added a redraw(DAMAGE_HIGHLIGHT) call to Back, Forw and Stop buttons.
Patches: Johannes Hofmann
+- Made progress bars resize automatically.
Patches: Johannes Hofmann, Jorge Arellano Cid
diff --git a/src/ui.cc b/src/ui.cc
index d0157ceb..aa4c794f 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -21,6 +21,7 @@
#include <fltk/Input.h>
#include <fltk/Output.h>
#include <fltk/run.h>
+#include <fltk/damage.h>
#include <fltk/BarGroup.h>
#include <fltk/PackedGroup.h>
#include <fltk/xpmImage.h>
@@ -996,12 +997,15 @@ void UI::button_set_sens(UIButton btn, int sens)
switch (btn) {
case UI_BACK:
(sens) ? Back->activate() : Back->deactivate();
+ Back->redraw(DAMAGE_HIGHLIGHT);
break;
case UI_FORW:
(sens) ? Forw->activate() : Forw->deactivate();
+ Forw->redraw(DAMAGE_HIGHLIGHT);
break;
case UI_STOP:
(sens) ? Stop->activate() : Stop->deactivate();
+ Stop->redraw(DAMAGE_HIGHLIGHT);
break;
default:
break;