summaryrefslogtreecommitdiff
path: root/gtk/gtktreednd.c
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@usa.net>2003-01-14 22:57:37 +0000
committerKristian Rietveld <kristian@src.gnome.org>2003-01-14 22:57:37 +0000
commit5c466a9f39ea04f7ab8940519d9e2d44d1a04d04 (patch)
treeba7f756bd8d386dd2ddee4dc43ade90935d90a27 /gtk/gtktreednd.c
parentf35b13f65fc09fa190d521e643a95b58028e1e1f (diff)
downloadgtk+-5c466a9f39ea04f7ab8940519d9e2d44d1a04d04.tar.gz
Fixes #102168.
2002-12-29 Murray Cumming <murrayc@usa.net> Fixes #102168. * gtk/gtkliststore.c, gtktreednd.c, gtktreestore.c: Actually implement the GtkTreeDragSource::row_draggable virtual function in GtkListStore and GtkTreeStore instead of just checking whether it's implemented at all. This means that DnD isn't broken by gtkmm's virtual function wrappers. The alternative would be to hard-code the TRUE return value into gtkmm's wrappers, but that's part of GTK+'s implementation, not it's API.
Diffstat (limited to 'gtk/gtktreednd.c')
-rw-r--r--gtk/gtktreednd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktreednd.c b/gtk/gtktreednd.c
index 09718a799b..7d9c13677e 100644
--- a/gtk/gtktreednd.c
+++ b/gtk/gtktreednd.c
@@ -97,6 +97,9 @@ gtk_tree_drag_source_row_draggable (GtkTreeDragSource *drag_source,
return (* iface->row_draggable) (drag_source, path);
else
return TRUE;
+ /* Returning TRUE if row_draggable is not implemented is a fallback.
+ Interface implementations such as GtkTreeStore and GtkListStore really should
+ implement row_draggable. */
}