From dae7e8dbd312d2d47b8eb4ffb1025555d537711c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 1 Apr 2017 15:50:48 +0200 Subject: NO-OP: whitespace --- gtk2_ardour/splash.cc | 55 +++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 28 deletions(-) (limited to 'gtk2_ardour/splash.cc') diff --git a/gtk2_ardour/splash.cc b/gtk2_ardour/splash.cc index 1784ac8164..744a49fa4f 100644 --- a/gtk2_ardour/splash.cc +++ b/gtk2_ardour/splash.cc @@ -54,7 +54,7 @@ Splash::Splash () rc.add_subdirectory_to_paths ("resources"); if (!find_file (rc, PROGRAM_NAME "-splash.png", splash_file)) { - cerr << "Cannot find splash screen image file\n"; + cerr << "Cannot find splash screen image file\n"; throw failed_constructor(); } @@ -63,7 +63,7 @@ Splash::Splash () } catch (...) { - cerr << "Cannot construct splash screen image\n"; + cerr << "Cannot construct splash screen image\n"; throw failed_constructor(); } @@ -91,8 +91,8 @@ Splash::Splash () set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN); the_splash = this; - expose_done = false; - expose_is_the_one = false; + expose_done = false; + expose_is_the_one = false; ARDOUR::BootMessage.connect (msg_connection, invalidator (*this), boost::bind (&Splash::boot_message, this, _1), gui_context()); } @@ -106,20 +106,20 @@ void Splash::pop_back_for (Gtk::Window& win) { #if defined __APPLE__ || defined PLATFORM_WINDOWS - /* April 2013: window layering on OS X is a bit different to X Window. at present, - the "restack()" functionality in GDK will only operate on windows in the same - "level" (e.g. two normal top level windows, or two utility windows) and will not - work across them. The splashscreen is on its own "StatusWindowLevel" so restacking - is not going to work. - - So for OS X, we just hide ourselves. - - Oct 2014: The Windows situation is similar, although it should be possible - to play tricks with gdk's set_type_hint() or directly hack things using - SetWindowLong() and UpdateLayeredWindow() - */ - (void) win; - hide(); + /* April 2013: window layering on OS X is a bit different to X Window. at present, + * the "restack()" functionality in GDK will only operate on windows in the same + * "level" (e.g. two normal top level windows, or two utility windows) and will not + * work across them. The splashscreen is on its own "StatusWindowLevel" so restacking + * is not going to work. + * + * So for OS X, we just hide ourselves. + * + * Oct 2014: The Windows situation is similar, although it should be possible + * to play tricks with gdk's set_type_hint() or directly hack things using + * SetWindowLong() and UpdateLayeredWindow() + */ + (void) win; + hide(); #else set_keep_above (false); get_window()->restack (win.get_window(), false); @@ -129,11 +129,10 @@ Splash::pop_back_for (Gtk::Window& win) void Splash::pop_front () { - #if defined __APPLE__ || defined PLATFORM_WINDOWS - if (get_window()) { - show (); - } + if (get_window()) { + show (); + } #endif } @@ -150,9 +149,9 @@ Splash::on_button_release_event (GdkEventButton* ev) { RefPtr window = get_window(); - if (!window || ev->window != window->gobj()) { - return false; - } + if (!window || ev->window != window->gobj()) { + return false; + } hide (); return true; @@ -199,7 +198,7 @@ Splash::boot_message (std::string msg) bool Splash::idle_after_expose () { - expose_done = true; + expose_done = true; return false; } @@ -231,13 +230,13 @@ Splash::message (const string& msg) str += Gtkmm2ext::markup_escape_text (msg); str += ""; - show (); + show (); layout->set_markup (str); Glib::RefPtr win = darea.get_window(); if (win) { - expose_done = false; + expose_done = false; if (win->is_visible ()) { win->invalidate_rect (Gdk::Rectangle (0, darea.get_height() - 30, darea.get_width(), 30), true); -- cgit v1.2.3