From: Alan Knowles Date: Thu, 5 May 2011 08:38:17 +0000 (+0800) Subject: Builder3/Window.js X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=676d0ce7d274ba64c8275a9cffa9c5d2c5b1a47d Builder3/Window.js --- diff --git a/Builder3/Window.js b/Builder3/Window.js index 372e78b30..bdf6448c1 100644 --- a/Builder3/Window.js +++ b/Builder3/Window.js @@ -522,7 +522,12 @@ Window=new XObject({ // 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; }, @@ -4030,7 +4035,8 @@ Window=new XObject({ 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();