DnD-TV: Allow to specify TargetFlags
This commit is contained in:
parent
af69061644
commit
1078dc7eda
@ -124,9 +124,9 @@ DnDTreeViewBase::add_drop_targets (list<TargetEntry>& targets)
|
||||
}
|
||||
|
||||
void
|
||||
DnDTreeViewBase::add_object_drag (int column, string type_name)
|
||||
DnDTreeViewBase::add_object_drag (int column, string type_name, TargetFlags flags)
|
||||
{
|
||||
draggable.push_back (TargetEntry (type_name, TargetFlags(0)));
|
||||
draggable.push_back (TargetEntry (type_name, flags));
|
||||
data_column = column;
|
||||
object_type = type_name;
|
||||
|
||||
|
@ -66,7 +66,7 @@ class LIBGTKMM2EXT_API DnDTreeViewBase : public Gtk::TreeView
|
||||
sigc::signal4<bool, const Glib::RefPtr<Gdk::DragContext>&, int, int, guint, BoolAccumulator> signal_motion;
|
||||
|
||||
void add_drop_targets (std::list<Gtk::TargetEntry>&);
|
||||
void add_object_drag (int column, std::string type_name);
|
||||
void add_object_drag (int column, std::string type_name, Gtk::TargetFlags flags = Gtk::TargetFlags (0));
|
||||
|
||||
void on_drag_begin (Glib::RefPtr<Gdk::DragContext> const & context);
|
||||
void on_drag_end (Glib::RefPtr<Gdk::DragContext> const & context);
|
||||
|
Loading…
Reference in New Issue
Block a user