Commit 6210207f authored by Jim Nelson's avatar Jim Nelson

#2450: Toolbar now remains pinned in fullscreen mode. Courtesy Philip Beam.

parent 2d4a043b
......@@ -56,7 +56,7 @@ public class FullscreenWindow : PageWindow {
pin_button.set_label(_("Pin Toolbar"));
pin_button.set_tooltip_text(_("Pin the toolbar open"));
pin_button.clicked.connect(on_pin_button_state_change);
pin_button.clicked.connect(update_toolbar_dismissal);
close_button.set_tooltip_text(_("Leave fullscreen"));
close_button.clicked.connect(on_close);
......@@ -102,15 +102,11 @@ public class FullscreenWindow : PageWindow {
invoke_toolbar();
}
public void enable_toolbar_dismissal() {
is_toolbar_dismissal_enabled = true;
}
public void disable_toolbar_dismissal() {
is_toolbar_dismissal_enabled = false;
}
private void on_pin_button_state_change() {
public void update_toolbar_dismissal() {
is_toolbar_dismissal_enabled = !pin_button.get_active();
}
......
......@@ -546,7 +546,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
enable_interactive_zoom_refresh = false;
if (get_container() is FullscreenWindow)
((FullscreenWindow) get_container()).enable_toolbar_dismissal();
((FullscreenWindow) get_container()).update_toolbar_dismissal();
ZoomState zoom_state = ZoomState.rescale(get_zoom_state(), zoom_slider.get_value());
set_zoom_state(zoom_state);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment