[devhelp/wip/swilmet/misc-improvements: 13/14] app: simplify activate



commit 5a72f248903681d2e93962e7353ec195fce50c54
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon May 25 21:38:58 2015 +0200

    app: simplify activate
    
    It's exactly the same code as new_window_cb(), which is called by
    dh_app_new_window().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749797

 src/dh-app.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index b52e304..5169b37 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -412,12 +412,7 @@ dh_app_startup (GApplication *application)
 static void
 dh_app_activate (GApplication *application)
 {
-        DhApp *app = DH_APP (application);
-        GtkWidget *window;
-
-        window = dh_window_new (app);
-        gtk_application_add_window (GTK_APPLICATION (app), GTK_WINDOW (window));
-        gtk_widget_show_all (window);
+        dh_app_new_window (DH_APP (application));
 }
 
 /******************************************************************************/


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