add(m_HBox);
m_HBox.pack_start(m_VBox);
+
+ m_VBox.pack_start(m_Button_Canio);
+ m_VBox.pack_start(m_Button_Y);
+ m_VBox.pack_start(m_Button_Codo);
+
m_HBox.pack_start(m_WorkPlace);
- m_WorkPlace.set_size_request(300, 300);
+ m_WorkPlace.set_size_request(600, 600);
//Targets:
std::list<Gtk::TargetEntry> listTargets;
m_Button_Y.signal_drag_begin().connect( SigC::slot(*this, &DnDWindow::on_y_drag_begin));
m_Button_Codo.signal_drag_begin().connect( SigC::slot(*this, &DnDWindow::on_codo_drag_begin));
- m_VBox.pack_start(m_Button_Canio);
- m_VBox.pack_start(m_Button_Y);
- m_VBox.pack_start(m_Button_Codo);
-
-
//Drop site:
-
- //Make m_Label_Drop a DnD drop destination:
m_WorkPlace.drag_dest_set(listTargets);
-
- //Connect signals:
+
+ //Connect signals:
m_WorkPlace.signal_drag_data_received().connect( SigC::slot(*this, &DnDWindow::on_label_drop_drag_data_received) );
-
show_all();
}
context->drag_finish(false, false, time);
}
+