[devhelp] App: do not call gtk_application_add_window() after creating DhWindow



commit 184cb8d0ee3a6a42ac2df0be4c6e2a1b5a1ba963
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Dec 17 15:04:45 2017 +0100

    App: do not call gtk_application_add_window() after creating DhWindow
    
    dh_window_new() already set the GtkWindow:application property.

 src/dh-app.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index 10f0dce..4965c91 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -56,7 +56,6 @@ new_window_cb (GSimpleAction *action,
         GtkWidget *window;
 
         window = dh_window_new (app);
-        gtk_application_add_window (GTK_APPLICATION (app), GTK_WINDOW (window));
         gtk_widget_show_all (window);
 }
 


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