[gnome-boxes] app-window: Drop use of AppWindow singleton
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app-window: Drop use of AppWindow singleton
- Date: Fri, 8 Aug 2014 16:24:15 +0000 (UTC)
commit 315c9543856da6db97c9c271c4269fabdd4fe0f6
Author: Adrien Plazas <kekun plazas laposte net>
Date: Wed Jul 16 12:51:40 2014 +0200
app-window: Drop use of AppWindow singleton
App.window was accessed in AppWindow class when the current object should
be used.
This is needed to drop the use of AppWindow singleton and therefore to
make multiple windows possible.
https://bugzilla.gnome.org/show_bug.cgi?id=732098
src/app-window.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/app-window.vala b/src/app-window.vala
index d9fc665..5e53308 100644
--- a/src/app-window.vala
+++ b/src/app-window.vala
@@ -260,14 +260,14 @@ private class Boxes.AppWindow: Gtk.ApplicationWindow, Boxes.UI {
return true;
} else if (event.keyval == Gdk.Key.Left && // ALT + Left -> back
(event.state & default_modifiers) == Gdk.ModifierType.MOD1_MASK) {
- App.window.topbar.click_back_button ();
+ topbar.click_back_button ();
return true;
} else if (event.keyval == Gdk.Key.Right && // ALT + Right -> forward
(event.state & default_modifiers) == Gdk.ModifierType.MOD1_MASK) {
- App.window.topbar.click_forward_button ();
+ topbar.click_forward_button ();
return true;
} else if (event.keyval == Gdk.Key.Escape) { // ESC -> cancel
- App.window.topbar.click_cancel_button ();
+ topbar.click_cancel_button ();
}
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]