Re: FW: [gtkmm] drag and drop with multiple targets



Callum Prentice writes:
 > so i overrode Gtk::Widget::on_drag_data_get () as well as Gtk::Widget::on_drag_begin () and
 > Gtk::Widget::on_drag_end () and they worked as expected but my overridden version of
 > Gtk::Widget::on_drag_data_received () never gets called - i copied the function signature from
 > the header file so i'm sure it's not a typo.

the data_received() function isn't called because the data_get() function
doesn't provide any data.  add this line to faceWidget::on_drag_data_get()

gtk_selection_data_set(selection_data, selection_data->target, 8, NULL, 0);

the idea is to transport actual data this way, but your faceWidget class
is another faceWidget's friend after all.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]