X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/31b3e321726d5c3fe720dd216687d3138523714f..b0a202776ab7634c206b495b42e20cfe6492e035:/Constructor/constructor.cpp?ds=sidebyside diff --git a/Constructor/constructor.cpp b/Constructor/constructor.cpp index 8aa6655..aa162e9 100644 --- a/Constructor/constructor.cpp +++ b/Constructor/constructor.cpp @@ -110,32 +110,32 @@ Constructor::~Constructor() void Constructor::on_btn_canio_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) { - gtk_selection_data_set (selection_data, selection_data->target, 8, (const guchar*)"canio_n.png", 14); + gtk_selection_data_set (selection_data, selection_data->target, 8, (const guchar*)"canio_n.png", 12); } void Constructor::on_btn_y_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) { - gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"y_n.png",10); + gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"y_n.png",8); } void Constructor::on_btn_codo_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) { - gtk_selection_data_set(selection_data, selection_data->target, 8 ,(const guchar*)"codo_o.png",13); + gtk_selection_data_set(selection_data, selection_data->target, 8 ,(const guchar*)"codo_o.png",10); } void Constructor::on_btn_tanque_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) { - gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"tanque_e.png",15); + gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"tanque_e.png",12); } void Constructor::on_btn_bomba_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) { - gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"bomba_e.png",15); + gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"bomba_e.png",11); } void Constructor::on_btn_exclusa_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) { - gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"exclusa_h.png",15); + gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"exclusa_h.png",13); } void Constructor::on_btn_drain_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) @@ -272,6 +272,11 @@ void Constructor::on_not_drag_begin(const Glib::RefPtr& contex void Constructor::on_item_drag_begin(const Glib::RefPtr& context, CItem *item) { context->set_icon(item->get_image(), 5, 5); + std::list::iterator i = listaItems.begin(); + while ( i != listaItems.end() ){ + (*i)->set_default_connector(); + i++; + } } void Constructor::on_item_drag_data_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time)