[gnome-boxes] wizard-toolbar: Keep a ref to WizardWindow
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] wizard-toolbar: Keep a ref to WizardWindow
- Date: Sun, 7 Dec 2014 23:43:14 +0000 (UTC)
commit 4d579b5bae1d3d3c53f44abea7f527a383184418
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Dec 7 21:47:27 2014 +0000
wizard-toolbar: Keep a ref to WizardWindow
WizardToolbar now keeps an unowned reference to its parent WizardWindow.
https://bugzilla.gnome.org/show_bug.cgi?id=741046
src/wizard-toolbar.vala | 6 ++++++
src/wizard-window.vala | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/wizard-toolbar.vala b/src/wizard-toolbar.vala
index cbc9ce7..3c9a67d 100644
--- a/src/wizard-toolbar.vala
+++ b/src/wizard-toolbar.vala
@@ -12,6 +12,12 @@ private class Boxes.WizardToolbar: HeaderBar {
[GtkChild]
public Button create_btn;
+ private unowned WizardWindow wizard_window;
+
+ public void setup_ui (WizardWindow wizard_window) {
+ this.wizard_window = wizard_window;
+ }
+
public void click_back_button () {
if (back_btn.sensitive)
back_btn.clicked ();
diff --git a/src/wizard-window.vala b/src/wizard-window.vala
index b0c1611..ce4f808 100644
--- a/src/wizard-window.vala
+++ b/src/wizard-window.vala
@@ -47,6 +47,7 @@ private class Boxes.WizardWindow : Gtk.Window, Boxes.UI {
public WizardWindow (AppWindow app_window) {
wizard.setup_ui (app_window, this);
+ topbar.setup_ui (this);
set_transient_for (app_window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]