}
if (ev.type != Gdk.EventType.BUTTON_PRESS || ev.button.button != 3) {
- print("click" + ev.type);
+ print("click" + ev.button.type);
return false;
}
// 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;
},
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_widget(ctx);
if (!src.dropList) {
- ctx.drag_status(0, time);
+ Gdk.drag_status(ctx,0, time);
return true;
}
// b) get what we are over.. (from activeNode)
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) {