[beast: 4/28] BEAST: bstmain.cc: extract method main_splash_down



commit c22dcf4eb47ab313063ac41765de20d974897e28
Author: Tim Janik <timj gnu org>
Date:   Tue Dec 1 00:21:16 2015 +0100

    BEAST: bstmain.cc: extract method main_splash_down
    
    Signed-off-by: Tim Janik <timj gnu org>

 beast-gtk/bstmain.cc |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/beast-gtk/bstmain.cc b/beast-gtk/bstmain.cc
index 0e2789b..78992d8 100644
--- a/beast-gtk/bstmain.cc
+++ b/beast-gtk/bstmain.cc
@@ -60,6 +60,7 @@ server_registration (SfiProxy     server,
     }
 }
 
+static void     main_splash_down ();
 static void     main_run_event_loops ();
 static bool     force_saving_rc_files = false;
 static void     main_save_rc_files ();
@@ -375,10 +376,7 @@ main (int argc, char *argv[])
       force_saving_rc_files = true;
     }
 
-  /* release splash grab */
-  gtk_widget_hide (beast_splash);
-  bst_splash_release_grab (beast_splash);
-
+  main_splash_down();
   main_run_event_loops();
   main_save_rc_files();
   main_cleanup();
@@ -387,6 +385,13 @@ main (int argc, char *argv[])
 }
 
 static void
+main_splash_down ()
+{
+  gtk_widget_hide (beast_splash);
+  bst_splash_release_grab (beast_splash);
+}
+
+static void
 main_run_event_loops ()
 {
   /* away into the main loop */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]