13
0

DnD-TV: Allow to specify TargetFlags

This commit is contained in:
Robin Gareus 2022-01-10 20:40:46 +01:00
parent af69061644
commit 1078dc7eda
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);