X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/69f9b2a4a210cf2933c2da844183a199ba7ff5da..db48e71a89861a755974c45ea7e7fd5d52de8afa:/Constructor/constructor.cpp diff --git a/Constructor/constructor.cpp b/Constructor/constructor.cpp index 449e7c3..98f6ab9 100644 --- a/Constructor/constructor.cpp +++ b/Constructor/constructor.cpp @@ -82,12 +82,7 @@ void Constructor::on_item_drag_begin(const Glib::RefPtr& conte void Constructor::on_item_drag_data_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time) { - if ( strcmp((const char *)selection_data->data,"item_codo.png")==0) - gtk_selection_data_set (selection_data, selection_data->target, 10, (const guchar*)"item_codo.png", 13); - if ( strcmp((const char *)selection_data->data,"item_canio.png")==0) - gtk_selection_data_set (selection_data, selection_data->target, 10, (const guchar*)"item_canio.png", 14); - if ( strcmp((const char *)selection_data->data,"item_y.png")==0) - gtk_selection_data_set (selection_data, selection_data->target, 10, (const guchar*)"item_y.png", 10); + gtk_selection_data_set (selection_data, selection_data->target, 10, (const guchar*)"item_codo.png", 13); } void Constructor::on_item_drop_drag_received(const Glib::RefPtr& context, int x, int y, GtkSelectionData* selection_data, guint info, guint time)