projects
/
app.Builder.js
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Builder3/Window.js
[app.Builder.js]
/
Builder3
/
Window.js
diff --git
a/Builder3/Window.js
b/Builder3/Window.js
index
56f5734
..
22f82aa
100644
(file)
--- 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);
// 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;
},
@@
-2990,9
+2995,9
@@
Window=new XObject({
this.el.execute_script("Builder.overPos(" + x +','+ y + ");");
// A) find out from drag all the places that node could be dropped.
this.el.execute_script("Builder.overPos(" + x +','+ y + ");");
// A) find out from drag all the places that node could be dropped.
- var src = Gtk.drag_get_source_widge(ctx);
+ var src = Gtk.drag_get_source_widge
t
(ctx);
if (!src.dropList) {
if (!src.dropList) {
-
ctx.drag_status(
0, time);
+
Gdk.drag_status(ctx,
0, time);
return true;
}
// b) get what we are over.. (from activeNode)
return true;
}
// b) get what we are over.. (from activeNode)
@@
-4026,9
+4031,13
@@
Window=new XObject({
var pix = this.el.create_row_drag_icon ( path);
var pix = this.el.create_row_drag_icon ( path);
-
- Gtk.drag_set_icon_surface ( ctx, pix );
-
+ print(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);
+ }
var value = ''+ this.get('/RightPalete.model').el.get_value(iret.iter, 0).value.get_string();
if (!this.get('/RightPalete').provider) {
var value = ''+ this.get('/RightPalete.model').el.get_value(iret.iter, 0).value.get_string();
if (!this.get('/RightPalete').provider) {