Sample/DialogConfirm.js
[app.Builder.js] / Sample / DialogConfirm.js
index 2926920..a289c4b 100644 (file)
@@ -7,6 +7,8 @@ GObject = imports.gi.GObject;
 GtkSource = imports.gi.GtkSource;
 WebKit = imports.gi.WebKit;
 Vte = imports.gi.Vte;
+GtkClutter = imports.gi.GtkClutter;
+Gdl = imports.gi.Gdl;
 console = imports.console;
 XObject = imports.XObject.XObject;
 DialogConfirm=new XObject({
@@ -25,8 +27,9 @@ DialogConfirm=new XObject({
     message_type : Gtk.MessageType.QUESTION,
     use_markup : true,
     text : "-",
+    modal : true,
     listeners : {
-        "response":function (self, response_id) {
+        response : function (self, response_id) {
            this.el.hide();
         print("RESPOSE: " + response_id);
             if (response_id == -8) { //yes!
@@ -34,7 +37,7 @@ DialogConfirm=new XObject({
               this.success();
             }
         },
-        "delete_event":function (self, event) {
+        delete_event : function (self, event) {
             this.el.hide();
             return true;
         }