Gtk2::T...gSource(3)
π Gtk2::TreeDragSource β okay bestie, let's talk drag sources β¨
So this page is Gtk2::T...gSource(3) from the User Contributed Perl Documentation, and the thing it's actually about is Gtk2::TreeDragSource β a lil wrapper for GtkTreeDragSource. π
β¨ NAME β¨
Gtk2::TreeDragSource β wrapper for GtkTreeDragSource
Like. It's the drag source. The one doing the dragging. Main character energy fr. π
πΈ HIERARCHY πΈ
Glib::Interface
+----Gtk2::TreeDragSource
So it's a Glib::Interface at the top, and Gtk2::TreeDragSource hangs off it. It's giving "descended from greatness". π
π¦ METHODS π¦
π boolean = $drag_source->drag_data_delete ($path)
$pathβ aGtk2::TreePath. That's it, that's the whole argument. π«
π selection_data = $drag_source->drag_data_get ($path, $selection_data)
$pathβ aGtk2::TreePath. π©·$selection_dataβ aGtk2::SelectionData. π©·
okay so this one actually does the thing: it gets selection data from a drag source, no cap. The data gets written to $selection_dataβ¦ unless you didn't pass $selection_data, in which case it goes into a brand-new Gtk2::SelectionData object with target type "GTK_TREE_MODEL_ROW". β¨
And on success? The return is the given or new object β whichever one we ended up with. On failure? The return is undef. π Not me getting undef back and having a whole crisis. Check your returns, bestie.
π boolean = $drag_source->row_draggable ($path)
$pathβ aGtk2::TreePath. π
π SEE ALSO π
Gtk2Glib::Interface
iykyk. go read those next, the lore runs deep. π
π«Ά COPYRIGHT π«Ά
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
π lowkey important: that's the whole license situation, don't skip it. respect the license, it's iconic behavior.
perl v5.42.0 Β· 2025-07-25 Β· Gtk2::T...gSource(3)
and that's the page!! πβ¨ mwah, go forth and drag responsibly, bestie. π
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms