[gnome-documents/gnome-3-12] application: Clean up OffsetController signals



commit 6cfecb2c8a109bd637de8ae0c789aa82b606ebf5
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Mar 12 10:16:27 2015 +0100

    application: Clean up OffsetController signals
    
    Failure to clean up the OffsetController signals led to
    Embed._onItemCountChanged and, ultimately, Embed._hideNoResultsPage
    being called with an invalid GtkStack if launch-search was received
    before the inactivity-timeout expired. This is why we got this WARNING
    in the console:
      Child name 'view' not found in GtkStack
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744643

 src/application.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 43c6ebb..1935e71 100644
--- a/src/application.js
+++ b/src/application.js
@@ -557,6 +557,7 @@ const Application = new Lang.Class({
         // clean up signals
         changeMonitor.disconnectAll();
         documentManager.disconnectAll();
+        offsetController.disconnectAll();
         trackerController.disconnectAll();
         selectionController.disconnectAll();
         modeController.disconnectAll();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]