Builder3/Window.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 5 May 2011 08:38:17 +0000 (16:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 5 May 2011 08:38:17 +0000 (16:38 +0800)
Builder3/Window.js

index 372e78b..bdf6448 100644 (file)
@@ -522,7 +522,12 @@ Window=new XObject({
                                                                                 // returns a cairo surface
                                                                                 var pix = this.el.create_row_drag_icon ( path);
                                                                                 
                                                                                 // returns a cairo surface
                                                                                 var pix = this.el.create_row_drag_icon ( path);
                                                                                 
-                                                                                Gtk.drag_set_icon_surface (ctx, pix);
+                                                                                if (Gtk.drag_set_icon_surface) {
+                                                                                   Gtk.drag_set_icon_surface( ctx,   pix  );
+                                                                                } else {
+                                                                                    Gtk.drag_set_icon_pixmap (ctx,
+                                                                                        pix.get_colormap(),   pix,   null, -10, -10);
+                                                                                }
                                                                                 
                                                                                 return true;
                                                                         },
                                                                                 
                                                                                 return true;
                                                                         },
@@ -4030,7 +4035,8 @@ Window=new XObject({
                                                                         if (Gtk.drag_set_icon_surface) {
                                                                                 Gtk.drag_set_icon_surface( ctx,   pix  );
                                                                         } else {
                                                                         if (Gtk.drag_set_icon_surface) {
                                                                                 Gtk.drag_set_icon_surface( ctx,   pix  );
                                                                         } else {
-                                                                            Gtk.drag_set_icon_pixmap (ctx, pix.get_colormap(),   pix,  null, ..... )
+                                                                            Gtk.drag_set_icon_pixmap (ctx,
+                                                                                pix.get_colormap(),   pix,   null, -10, -10);
                                                                         }
                                                                         
                                                                         var value = ''+ this.get('/RightPalete.model').el.get_value(iret.iter, 0).value.get_string();
                                                                         }
                                                                         
                                                                         var value = ''+ this.get('/RightPalete.model').el.get_value(iret.iter, 0).value.get_string();