[gnome-boxes] app-window: Add a workaround to a crash
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app-window: Add a workaround to a crash
- Date: Sat, 16 Aug 2014 15:46:39 +0000 (UTC)
commit 56dfff5c95efe48d5f3be717684af11542214806
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sun Aug 3 16:16:02 2014 +0200
app-window: Add a workaround to a crash
Use 'this.window' to refer to Topbar's AppWindow in a closure to
avoid a (likely Vala) bug (734877) while destroying the closure.
This is needed to make multiple windows possible.
https://bugzilla.gnome.org/show_bug.cgi?id=734486
src/topbar.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/topbar.vala b/src/topbar.vala
index 1875589..9b26013 100644
--- a/src/topbar.vala
+++ b/src/topbar.vala
@@ -101,7 +101,8 @@ private class Boxes.Topbar: Gtk.Stack, Boxes.UI {
this.window = window;
window.notify["selection-mode"].connect (() => {
- page = window.selection_mode ?
+ // FIXME: Usage of 'this' is a work around for https://bugzilla.gnome.org/show_bug.cgi?id=734877
+ page = this.window.selection_mode ?
TopbarPage.SELECTION : page = TopbarPage.COLLECTION;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]