gnome-shell r66 - trunk/js/ui



Author: walters
Date: Thu Nov 20 15:47:13 2008
New Revision: 66
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=66&view=rev

Log:
Fix up previous change; connect to signals correctly

Modified:
   trunk/js/ui/main.js

Modified: trunk/js/ui/main.js
==============================================================================
--- trunk/js/ui/main.js	(original)
+++ trunk/js/ui/main.js	Thu Nov 20 15:47:13 2008
@@ -32,10 +32,12 @@
         // Make sure not more than one run dialog is shown.
         if (!run_dialog) {
             run_dialog = new RunDialog.RunDialog();
-            run_dialog.on_run = run_dialog.on_cancel = function() {
+	    let handler = function() {
                 run_dialog.destroy();
                 run_dialog = null;
             };
+            run_dialog.connect('run', handler);
+            run_dialog.connect('cancel', handler);
             run_dialog.show();
         }
     });



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