summaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-03-09 14:22:32 -0300
committerJorge Arellano Cid <jcid@dillo.org>2011-03-09 14:22:32 -0300
commita472472ab9d6e5bead93f6adc754a33ef4c3ccb7 (patch)
treede603e190beb2f0fba17b0d539586d1e4b8867c6 /src/ui.cc
parentd19fdb04e7c6cf270e4637e8b82261c8a4f81f42 (diff)
Part of the UI wasn't visible. This minor changes fix it.
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui.cc b/src/ui.cc
index 72b9b42e..2de27fc9 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -644,8 +644,8 @@ void UI::make_status_panel(int ww)
/*
* User Interface constructor
*/
-UI::UI(int x, int y, int ww, int wh, const char* label, const UI *cur_ui) :
- Fl_Pack(x, y, ww, wh, label)
+UI::UI(int x, int y, int ui_w, int ui_h, const char* label, const UI *cur_ui) :
+ Fl_Pack(x, y, ui_w, ui_h, label)
{
PointerOnLink = FALSE;
@@ -676,11 +676,12 @@ UI::UI(int x, int y, int ww, int wh, const char* label, const UI *cur_ui) :
// Control panel
TopGroup->begin();
- make_panel(ww);
+ make_panel(ui_w);
// Render area
- int mh = wh - (lh+bh+sh);
+ int mh = ui_h - (lh+bh+sh);
Main = new Fl_Group(0,0,0,mh,"Welcome...");
+ Main->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
Main->box(FL_FLAT_BOX);
Main->color(FL_GRAY_RAMP + 3);
Main->labelfont(FL_HELVETICA_BOLD_ITALIC);
@@ -691,11 +692,11 @@ UI::UI(int x, int y, int ww, int wh, const char* label, const UI *cur_ui) :
MainIdx = TopGroup->find(Main);
// Find text bar
- findbar = new Findbar(ww, 28);
+ findbar = new Findbar(ui_w, 28);
//TopGroup->add(findbar);
// Status Panel
- make_status_panel(ww);
+ make_status_panel(ui_w);
//TopGroup->add(StatusPanel);
TopGroup->end();
@@ -1058,14 +1059,13 @@ void UI::panelmode_cb_i()
*/
void UI::set_render_layout(Fl_Group &nw)
{
- // We'll use a workaround in a_UIcmd_browser_window_new() instead.
TopGroup->remove(MainIdx);
delete(Main);
TopGroup->insert(nw, MainIdx);
Main = &nw;
+ TopGroup->resizable(Main);
//TopGroup->box(FL_DOWN_BOX);
//TopGroup->box(FL_BORDER_FRAME);
- TopGroup->resizable(TopGroup->child(MainIdx));
}
/*