Builder/StandardErrorDialog.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 30 Apr 2010 08:22:56 +0000 (16:22 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 30 Apr 2010 08:22:56 +0000 (16:22 +0800)
Builder/StandardErrorDialog.js

index 0dad98f..7799e0c 100755 (executable)
@@ -26,9 +26,12 @@ StandardErrorDialog = new XObject({
     
     
     
-    xtype : Gtk.MessageDialog,
+    xtype : function () {
+        return Gtk.MessageDialog({ buttons : Gtk.ButtonsType.OK });
+            
+    },
     modal : true,
-    buttons : Gtk.ButtonsType.OK,
+    
     'message-type' : Gtk.MessageType.ERROR,
     //"secondary-text"           gchar*                : Read / Write
     //"secondary-use-markup"     gboolean              : Read / Write