aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-03-15 13:01:14 -0300
committerJorge Arellano Cid <jcid@dillo.org>2011-03-15 13:01:14 -0300
commitdfce5ad6bc52369ebabcb508305dbffdaefd4553 (patch)
treee3a364ebb64550d185ebd351e71b181288cefa2d /src/ui.cc
parent1cb9fb27e023e739fd4bf2e790c269f9397160cb (diff)
Made the bug meter number&icon display correctly
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 9026b822..1bd6217c 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -630,11 +630,10 @@ void UI::make_status_bar(int ww, int wh)
StatusOutput->color(FL_GRAY_RAMP + 18);
// Bug Meter
- // TODO: fltk1.3 places label on top or bottom (no left right)
BugMeter = new Fl_Button(ww-bm_w,wh-sh,bm_w,sh);
BugMeter->image(icons->ImgMeterOK);
- BugMeter->box(FL_THIN_UP_BOX);
- BugMeter->align(FL_ALIGN_INSIDE|FL_ALIGN_LEFT);
+ BugMeter->box(FL_THIN_DOWN_BOX);
+ BugMeter->align(FL_ALIGN_TEXT_NEXT_TO_IMAGE);
if (prefs.show_tooltip)
BugMeter->tooltip("Show HTML bugs\n(right-click for menu)");
BugMeter->callback(bugmeter_cb, this);
@@ -928,7 +927,7 @@ void UI::set_img_prog(int n_img, int t_img, int cmd)
void UI::set_bug_prog(int n_bug)
{
char str[32];
- int new_w = 16;
+ int new_w = 20;
if (n_bug == 0) {
BugMeter->image(icons->ImgMeterOK);
@@ -939,11 +938,10 @@ void UI::set_bug_prog(int n_bug)
snprintf(str, 32, "%d", n_bug);
BugMeter->copy_label(str);
BugMeter->redraw_label();
- new_w = strlen(str)*8 + 20;
+ new_w = strlen(str)*9 + 20;
}
-// StatusOutput->resize(0,0,StatusBar->w()-new_w,StatusOutput->h());
-// BugMeter->resize(StatusBar->w()-new_w, 0, new_w, BugMeter->h());
-// StatusBar->init_sizes();
+ BugMeter->size(new_w, BugMeter->h());
+ StatusBar->rearrange();
}
/*