diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-26 14:35:06 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:24 -0500 |
commit | bc487bb4b02a9780938d6cf8528c888e59161aa9 (patch) | |
tree | 967703b895cafc301d3a0d4876c343370760fef2 /gtk2_ardour/mixer_ui.cc | |
parent | 589f2a1ab83e4498920faa2f0ef37c1632eaf914 (diff) |
replicate the remove-all-trailing whitespace commit(s) in master
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index 11db5211a9..ddce059328 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -108,7 +108,7 @@ Mixer_UI::Mixer_UI () /* bindings was already set in MixerActor constructor */ _content.set_data ("ardour-bindings", bindings); - + scroller.set_can_default (true); // set_default (scroller); @@ -2085,20 +2085,16 @@ Mixer_UI::update_title () n = "*" + n; } - if (own_window()) { - WindowTitle title (n); - title += S_("Window|Mixer"); - title += Glib::get_application_name (); - own_window()->set_title (title.get_string()); - } + WindowTitle title (n); + title += S_("Window|Mixer"); + title += Glib::get_application_name (); + own_window()->set_title (title.get_string()); } else { - if (own_window()) { - WindowTitle title (S_("Window|Mixer")); - title += Glib::get_application_name (); - own_window()->set_title (title.get_string()); - } + WindowTitle title (S_("Window|Mixer")); + title += Glib::get_application_name (); + own_window()->set_title (title.get_string()); } } @@ -2172,11 +2168,8 @@ Mixer_UI::maximise_mixer_space () return; } - Gtk::Window* win = (Gtk::Window*) get_toplevel(); - - if (win) { - win->fullscreen (); - _maximised = true; + if (_maximised) { + return; } _window->fullscreen (); @@ -2190,11 +2183,8 @@ Mixer_UI::restore_mixer_space () return; } - Gtk::Window* win = (Gtk::Window*) get_toplevel(); - - if (win) { - win->unfullscreen(); - _maximised = false; + if (!_maximised) { + return; } own_window()->unfullscreen(); |