[devhelp/wip/swilmet/misc-improvements: 1/3] app: simplify activate



commit b40ae40608cc39ff8481925abb3304afd636d684
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 1f7e1af..5f2821d 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -417,12 +417,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]