[gnome-robots/arnaudb/wip/gtk4: 26/45] Widgets are visible.




commit f1ed85db779b2acb0b1130529cbc77977ba8cc7a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon May 25 18:33:33 2020 +0200

    Widgets are visible.

 src/gnome-robots.c | 3 ---
 src/properties.c   | 2 --
 2 files changed, 5 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index 7b3204a..e3c2489 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -364,7 +364,6 @@ activate (GtkApplication *app, gpointer user_data)
   button = gtk_menu_button_new ();
   gtk_menu_button_set_icon_name (GTK_MENU_BUTTON (button), "open-menu-symbolic");
   gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (button), (GMenuModel *) appmenu);
-  gtk_widget_show (button);
   gtk_header_bar_pack_end (GTK_HEADER_BAR (headerbar), button);
 
   window = gtk_application_window_new (app);
@@ -454,8 +453,6 @@ activate (GtkApplication *app, gpointer user_data)
                                                                      "org.gnome.Robots");
   g_object_unref (importer);
 
-  gtk_widget_show_all (window);
-
   if (!load_game_configs ()) {
     /* Oops, no configs, we probably haven't been installed properly. */
     errordialog = gtk_message_dialog_new_with_markup (NULL, 0, GTK_MESSAGE_ERROR,
diff --git a/src/properties.c b/src/properties.c
index d389c5e..f201f43 100644
--- a/src/properties.c
+++ b/src/properties.c
@@ -531,8 +531,6 @@ show_properties_dialog (void)
                     G_CALLBACK (delete_cb), NULL);
   g_signal_connect (G_OBJECT (propbox), "response",
                     G_CALLBACK (apply_cb), NULL);
-
-  gtk_widget_show_all (propbox);
 }
 
 /**


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