[beast: 8/28] BEAST: bstmain.cc: extract method main_init_dialogs



commit e79bca008b0152eea3a208a8ce1d9d34c2d35d8a
Author: Tim Janik <timj gnu org>
Date:   Tue Dec 1 00:43:41 2015 +0100

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

 beast-gtk/bstmain.cc |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/beast-gtk/bstmain.cc b/beast-gtk/bstmain.cc
index 9336ddd..a8c97d9 100644
--- a/beast-gtk/bstmain.cc
+++ b/beast-gtk/bstmain.cc
@@ -60,6 +60,7 @@ server_registration (SfiProxy     server,
     }
 }
 
+static void     main_init_dialogs();
 static BstApp*  main_open_files (int filesc, char **filesv);
 static BstApp*  main_open_default_window();
 static void     main_show_release_notes();
@@ -233,12 +234,8 @@ main (int argc, char *argv[])
          sfi_glue_gc_run ();
        }
     }
-  /* listen to BseServer notification */
-  bst_splash_update_entity (beast_splash, _("Dialogs"));
-
-  bst_message_connect_to_server ();
-  _bst_init_radgets ();
 
+  main_init_dialogs();
   BstApp *app = main_open_files (argc - 1, &argv[1]);
   if (!app)
     app = main_open_default_window();
@@ -251,6 +248,14 @@ main (int argc, char *argv[])
   return 0;
 }
 
+static void
+main_init_dialogs()
+{
+  bst_splash_update_entity (beast_splash, _("Dialogs"));
+  bst_message_connect_to_server (); // listen to BseServer notification
+  _bst_init_radgets ();
+}
+
 static BstApp*
 main_open_files (int filesc, char **filesv)
 {


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