X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/5042b6492969385725852d3cf90959abb52a7398..15963eadb3f1cf8685de602f461c12d715d39c30:/Constructor/src/constructor.cpp?ds=inline diff --git a/Constructor/src/constructor.cpp b/Constructor/src/constructor.cpp index b2df77c..8229a48 100644 --- a/Constructor/src/constructor.cpp +++ b/Constructor/src/constructor.cpp @@ -360,15 +360,12 @@ void Constructor::on_not_drag_begin(const Glib::RefPtr& contex void Constructor::on_item_drag_begin(const Glib::RefPtr& context, CItem *item) { - GdkEventExpose e; context->set_icon(item->get_image(), 5, 5); - workplace->update_logic_position(); - workplace->queue_draw(); } void Constructor::on_item_drag_data_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) { - gtk_selection_data_set (selection_data, selection_data->target, 10, (const guchar*)"item_codo.png", 13); + gtk_selection_data_set (selection_data, selection_data->target, 10, (const guchar*)"item_codo.png", 13); } bool Constructor::can_drop(CItem *item, int _x, int _y) @@ -391,6 +388,8 @@ bool Constructor::can_drop(CItem *item, int _x, int _y) void Constructor::on_item_drop_drag_received(const Glib::RefPtr& context, int x, int y, GtkSelectionData* selection_data, guint info, guint time) { + workplace->update_logic_position(); + workplace->queue_draw(); if ( !logica ) { /* Ajusto coordenada x e y para que caigan en un lugar de una cuadricula de 32x32 */ int i,j;