diff options
author | Murray Cumming <murrayc@usa.net> | 2003-01-14 22:57:37 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2003-01-14 22:57:37 +0000 |
commit | 5c466a9f39ea04f7ab8940519d9e2d44d1a04d04 (patch) | |
tree | ba7f756bd8d386dd2ddee4dc43ade90935d90a27 /gtk/gtktreestore.c | |
parent | f35b13f65fc09fa190d521e643a95b58028e1e1f (diff) | |
download | gtk+-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/gtktreestore.c')
-rw-r--r-- | gtk/gtktreestore.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index 33190f2b7a..be3a15af05 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -74,6 +74,8 @@ static void gtk_tree_store_set_column_type (GtkTreeStore *tree_store, /* DND interfaces */ +static gboolean real_gtk_tree_store_row_draggable (GtkTreeDragSource *drag_source, + GtkTreePath *path); static gboolean gtk_tree_store_drag_data_delete (GtkTreeDragSource *drag_source, GtkTreePath *path); static gboolean gtk_tree_store_drag_data_get (GtkTreeDragSource *drag_source, @@ -231,6 +233,7 @@ gtk_tree_store_tree_model_init (GtkTreeModelIface *iface) static void gtk_tree_store_drag_source_init (GtkTreeDragSourceIface *iface) { + iface->row_draggable = real_gtk_tree_store_row_draggable; iface->drag_data_delete = gtk_tree_store_drag_data_delete; iface->drag_data_get = gtk_tree_store_drag_data_get; } @@ -1561,6 +1564,12 @@ gtk_tree_store_iter_is_valid (GtkTreeStore *tree_store, /* DND */ +static gboolean real_gtk_tree_store_row_draggable (GtkTreeDragSource *drag_source, + GtkTreePath *path) +{ + return TRUE; +} + static gboolean gtk_tree_store_drag_data_delete (GtkTreeDragSource *drag_source, GtkTreePath *path) |