diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2011-07-11 14:03:47 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2011-07-11 14:03:47 -0400 |
commit | 64ebc0065c367226307a4d98b084ad024f02e972 (patch) | |
tree | 380dad3f9c7c1f6ff4aae48785cd8b8302c8490d /src/ui.cc | |
parent | 9ef8198720e627434f898fb41f0724c7849dacab (diff) |
Made "hide-panels" hide the findbar, then panels (and removed "fullscreen").
Redefined "hide-panels" to close the findbar if it's visible, and all the
panels when the findbar is not visible.
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -760,7 +760,7 @@ UI::UI(int x, int y, int ui_w, int ui_h, const char* label, const UI *cur_ui) : customize(0); if (Panelmode == UI_HIDDEN) { - fullscreen_toggle(); + panels_toggle(); } } @@ -824,7 +824,8 @@ int UI::handle(int event) focus_location(); ret = 1; } else if (cmd == KEYS_HIDE_PANELS) { - fullscreen_toggle(); + /* Hide findbar if present, hide panels if not */ + (FindBarSpace) ? findbar_toggle(0) : panels_toggle(); ret = 1; //if (get_panelmode() == UI_TEMPORARILY_SHOW_PANELS) // set_panelmode(UI_HIDDEN); @@ -843,9 +844,6 @@ int UI::handle(int event) } else if (cmd == KEYS_SAVE) { a_UIcmd_save(a_UIcmd_get_bw_by_widget(this)); ret = 1; - } else if (cmd == KEYS_FULLSCREEN) { - fullscreen_toggle(); - ret = 1; } else if (cmd == KEYS_FILE_MENU) { a_UIcmd_file_popup(a_UIcmd_get_bw_by_widget(this), FileButton); ret = 1; @@ -1193,7 +1191,7 @@ void UI::findbar_toggle(bool add) * size to (0,0) while hidden. * (Already reported to FLTK team) */ -void UI::fullscreen_toggle() +void UI::panels_toggle() { int hide = StatusBar->visible(); |