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



commit c8ac35f310ced3b82682a503020b58c4136ec4e6
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 ec40c97..dde18c5 100644
--- a/src/application.js
+++ b/src/application.js
@@ -520,6 +520,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]