Builder/RightGtkView.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 14 May 2010 09:38:10 +0000 (17:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 14 May 2010 09:38:10 +0000 (17:38 +0800)
Builder/RightGtkView.js

index 8624497..99627c7 100755 (executable)
@@ -358,6 +358,9 @@ RightGtkView = new XObject({
                     return;
                 }
                 if (isListener) {
                     return;
                 }
                 if (isListener) {
+                    if (obj[i].match(/Gtk.main_quit/)) { // we can not handle this very well..
+                        return;
+                    }
                     els.push(JSON.stringify(i) + ":" + obj[i]);
                     return;
                 }
                     els.push(JSON.stringify(i) + ":" + obj[i]);
                     return;
                 }
@@ -366,6 +369,9 @@ RightGtkView = new XObject({
                     if (!obj[i].length) { //skip empty.
                         return;
                     }
                     if (!obj[i].length) { //skip empty.
                         return;
                     }
+                    if (obj[i].match(/Gtk.main_quit/)) { // we can not handle this very well..
+                        return;
+                    }
                     els.push(JSON.stringify(i.substring(1)) + ":" + obj[i]);
                     return;
                 }
                     els.push(JSON.stringify(i.substring(1)) + ":" + obj[i]);
                     return;
                 }