[gnome-games/wip/exalm/gtk4: 20/26] ui: Drop unnecessary show() and show_all() calls
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/gtk4: 20/26] ui: Drop unnecessary show() and show_all() calls
- Date: Sat, 9 Feb 2019 12:36:06 +0000 (UTC)
commit ccf424228a1b9d8948283f430066040a706bf243
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Sun Jul 29 14:15:48 2018 +0500
ui: Drop unnecessary show() and show_all() calls
src/ui/application.vala | 2 +-
src/ui/preferences-page-controllers.vala | 2 --
src/ui/preferences-page-plugins.vala | 3 ---
3 files changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 5ac85422..25fdb56f 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -233,7 +233,7 @@ public class Games.Application : Gtk.Application {
window.destroy.connect (() => {
quit_application ();
});
- window.show ();
+ window.present ();
GLib.Timeout.add (500, show_loading_notification);
}
diff --git a/src/ui/preferences-page-controllers.vala b/src/ui/preferences-page-controllers.vala
index d8298333..c19bd1c6 100644
--- a/src/ui/preferences-page-controllers.vala
+++ b/src/ui/preferences-page-controllers.vala
@@ -38,7 +38,6 @@ private class Games.PreferencesPageControllers: PreferencesPage {
var box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
box.add (new Gtk.Label (device.get_name ()));
box.margin = 6;
- box.show_all ();
gamepads_list_box.add (box);
}
gamepads_label.visible = i > 0;
@@ -74,7 +73,6 @@ private class Games.PreferencesPageControllers: PreferencesPage {
var box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
box.add (new Gtk.Label (_("Keyboard")));
box.margin = 6;
- box.show_all ();
keyboard_list_box.add (box);
}
diff --git a/src/ui/preferences-page-plugins.vala b/src/ui/preferences-page-plugins.vala
index 667af5df..cbcfd40e 100644
--- a/src/ui/preferences-page-plugins.vala
+++ b/src/ui/preferences-page-plugins.vala
@@ -17,8 +17,5 @@ private class Games.PreferencesPagePlugins: PreferencesPage {
var row = new Gtk.ListBoxRow ();
row.add (item);
list_box.add (row);
-
- item.show ();
- row.show ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]