[gnome-boxes] properties-toolbar: Keep a ref to PropertiesWindow
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties-toolbar: Keep a ref to PropertiesWindow
- Date: Fri, 5 Dec 2014 13:30:11 +0000 (UTC)
commit 65206a8e28026aa0750c657f3978d2029fa0e98d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Thu Dec 4 15:39:24 2014 +0000
properties-toolbar: Keep a ref to PropertiesWindow
We'll need this from PropertiesToolbar in the following patches.
https://bugzilla.gnome.org/show_bug.cgi?id=741047
src/properties-toolbar.vala | 5 ++++-
src/properties-window.vala | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/properties-toolbar.vala b/src/properties-toolbar.vala
index af75efe..6c8ea9b 100644
--- a/src/properties-toolbar.vala
+++ b/src/properties-toolbar.vala
@@ -9,6 +9,7 @@ private class Boxes.PropertiesToolbar: HeaderBar {
private EditableEntry title_entry;
private AppWindow window;
+ private unowned PropertiesWindow props_window;
private CollectionItem item;
private ulong item_name_id;
@@ -18,8 +19,10 @@ private class Boxes.PropertiesToolbar: HeaderBar {
set_custom_title (title_entry);
}
- public void setup_ui (AppWindow window) {
+ public void setup_ui (AppWindow window, PropertiesWindow props_window) {
this.window = window;
+ this.props_window = props_window;
+
window.notify["ui-state"].connect (ui_state_changed);
}
diff --git a/src/properties-window.vala b/src/properties-window.vala
index 5f7c66b..bcd151d 100644
--- a/src/properties-window.vala
+++ b/src/properties-window.vala
@@ -19,7 +19,7 @@ private class Boxes.PropertiesWindow: Gtk.Window, Boxes.UI {
this.app_window = app_window;
properties.setup_ui (app_window, this);
- topbar.setup_ui (app_window);
+ topbar.setup_ui (app_window, this);
set_transient_for (app_window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]