[polari] mainWindow: Mark application busy while connecting



commit 36e523b292fab4ec42fb19613e90cf8c8d23e689
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Feb 27 22:30:38 2014 +0100

    mainWindow: Mark application busy while connecting

 src/mainWindow.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index ae32dfe..e8f1576 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -215,10 +215,12 @@ const MainWindow = new Lang.Class({
         let app = Gio.Application.get_default();
         let notification = new AppNotifications.ConnectingNotification(account);
         app.notificationQueue.addNotification(notification);
+        app.mark_busy();
 
         account._connectingNotification = notification;
         notification.widget.connect('destroy',
             function() {
+                app.unmark_busy();
                delete account._connectingNotification;
             });
     },


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