[gnome-games/wip/exalm/cleanups: 13/13] application-window: Pass application as parameter
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/cleanups: 13/13] application-window: Pass application as parameter
- Date: Mon, 25 Feb 2019 11:04:10 +0000 (UTC)
commit 9e100450e46ae8ecc58dcffef782e227784b72b1
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Mon Feb 25 16:01:14 2019 +0500
application-window: Pass application as parameter
src/ui/application-window.vala | 4 ++--
src/ui/application.vala | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/application-window.vala b/src/ui/application-window.vala
index 0d93e22e..c8e9b414 100644
--- a/src/ui/application-window.vala
+++ b/src/ui/application-window.vala
@@ -117,8 +117,8 @@ private class Games.ApplicationWindow : Gtk.ApplicationWindow {
}
}
- public ApplicationWindow (ListModel collection) {
- Object (collection: collection);
+ public ApplicationWindow (Application application, ListModel collection) {
+ Object (application: application, collection: collection);
}
construct {
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 31268361..e90b65ea 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -234,8 +234,7 @@ public class Games.Application : Gtk.Application {
return;
}
- window = new ApplicationWindow (list_store);
- this.add_window (window);
+ window = new ApplicationWindow (this, list_store);
window.destroy.connect (() => {
quit_application ();
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]