GtkSource = imports.gi.GtkSource;
WebKit = imports.gi.WebKit;
Vte = imports.gi.Vte;
-GtkClutter = imports.gi.GtkClutter;
+//GtkClutter = imports.gi.GtkClutter;
console = imports.console;
XObject = imports.XObject.XObject;
Window=new XObject({
return true;
},
drag_data_received : function (self, ctx, x, y, sel_data, info, time) {
- print("Tree: drag-data-received");
+ print("Tree: drag-data-received");
var delete_selection_data = false;
var dnd_success = false;
- print(JSON.stringify(sel_data, null,4));
+ //print(JSON.stringify(sel_data, null,4));
/* Deal with what we are given from source */
// simce I can not be bothered to sort out
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)
this.get('buttonbar').el.show();
this.get('viewbox').el.hide();
- var ce = this.get('/Window.centerEast').el;
+ var ce = this.get('/Window.centereast').el;
- ce.set_postion(ce.get_allocated_width() - 30);
+ ce.set_position(ce.get_allocated_width() - 30);
print("TRIED TO HIDE");
},
this.get('viewbox').el.show();
var ce = this.get('/Window.centereast').el;
print(JSON.stringify(XObject.keys(ce) ,null,4));
- ce.set_postion(ce.get_allocated_width() - 100);
+ ce.set_position(ce.get_allocated_width() - 150);
// this.get('model').expanded();
var iret = {};
var s = this.selection;
s.get_selected(iret);
- var path = this.get('/RightPalete.model').el.get_path(iter.iter);
+ var path = this.get('/RightPalete.model').el.get_path(iret.iter);
var pix = this.el.create_row_drag_icon ( path);