diff options
author | jcid <devnull@localhost> | 2008-01-02 00:48:50 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-01-02 00:48:50 +0100 |
commit | b33e0ab7a06ab6b2e7da7e0b7ece4b39d2ce0a3f (patch) | |
tree | 0fec4706c1ad20c63ae0886445d04de26964ced9 /src/ui.hh | |
parent | eb0733ac6de692a30ea0ebe6a47519b5337f4e22 (diff) |
- Made TopGroup a PackedGroup, simplifying UI code and removing workarounds.
Diffstat (limited to 'src/ui.hh')
-rw-r--r-- | src/ui.hh | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -50,8 +50,7 @@ class UI : public fltk::Window { int PanelSize, CuteColor, Small_Icons; int xpos, bw, bh, fh, lh, lbl; - // TODO: Hack for fullscreen mode - int Panel_h, Status_h; + bool Fullscreen; PackedGroup *make_toolbar(int tw, int th); PackedGroup *make_location(); @@ -81,22 +80,6 @@ public: void button_set_sens(UIButton btn, int sens); void paste_url(); - // Workaround functions for a non-working replace() in FLTK2 - void set_render_layout_begin() { - TopGroup->remove(MainIdx); - TopGroup->remove(TopGroup->find(StatusPanel)); - delete(Main); - Main = NULL; - TopGroup->begin(); - } - void set_render_layout_end() { - TopGroup->resizable(TopGroup->child(MainIdx)); - Main = TopGroup->child(MainIdx); - TopGroup->add(*StatusPanel); - TopGroup->end(); - } - int panel_h() { return Panel->h(); }; - int status_h() { return Status->h(); }; Widget *fullscreen_button() { return FullScreen; } void fullscreen_toggle() { FullScreen->do_callback(); } |