Mercurial > dillo_port1.3
changeset 1978:3172b6199fd1
Disabled the right-click-over-search-button hook that changed panel size
author | Jorge Arellano Cid <jcid@dillo.org> |
---|---|
date | Thu, 21 Apr 2011 13:22:00 -0300 |
parents | e816e06ee901 |
children | f10139946f43 |
files | src/ui.cc |
diffstat | 1 files changed, 4 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ui.cc Thu Apr 21 13:15:51 2011 -0300 +++ b/src/ui.cc Thu Apr 21 13:22:00 2011 -0300 @@ -238,7 +238,7 @@ } else if (b == FL_MIDDLE_MOUSE) { ((UI*)data)->color_change_cb_i(); } else if (b == FL_RIGHT_MOUSE) { - ((UI*)data)->change_panel(-1,-1); + // nothing ATM } } @@ -1022,16 +1022,9 @@ Fl::delete_widget(NavBar); MenuBar = LocBar = NavBar = NULL; - // Set panel and icons size - if (new_size < 0 || small_icons < 0) { - if (++PanelSize > P_large) { - PanelSize = P_tiny; - Small_Icons = !Small_Icons; - } - } else { - PanelSize = new_size; - Small_Icons = small_icons; - } + // Set internal vars for panel size + PanelSize = new_size; + Small_Icons = small_icons; // make a new panel make_panel(TopGroup->w());