From 15963eadb3f1cf8685de602f461c12d715d39c30 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=A1s=20Dimov?= Date: Wed, 19 Nov 2003 03:52:01 +0000 Subject: [PATCH] se corrige el bug de la primera tirada de cables --- Constructor/src/constructor.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.43.0