mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Merged from stable.
Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org> Merged from stable. * gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special case drags to "0", scroll to the top after dropping. (Fixes #94968, reported by Alp Toker).
This commit is contained in:
parent
c5037bdb50
commit
497de299e8
@ -1,3 +1,11 @@
|
||||
Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
|
||||
case drags to "0", scroll to the top after dropping. (Fixes #94968,
|
||||
reported by Alp Toker).
|
||||
|
||||
Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
|
||||
case drags to "0", scroll to the top after dropping. (Fixes #94968,
|
||||
reported by Alp Toker).
|
||||
|
||||
Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
|
||||
case drags to "0", scroll to the top after dropping. (Fixes #94968,
|
||||
reported by Alp Toker).
|
||||
|
||||
Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
|
||||
case drags to "0", scroll to the top after dropping. (Fixes #94968,
|
||||
reported by Alp Toker).
|
||||
|
||||
Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Jul 12 16:16:04 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
||||
* gtk/gtktreeview.c (gtk_tree_view_drag_data_received): special
|
||||
case drags to "0", scroll to the top after dropping. (Fixes #94968,
|
||||
reported by Alp Toker).
|
||||
|
||||
Sat Jul 12 16:08:32 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -4976,7 +4976,7 @@ set_destination_row (GtkTreeView *tree_view,
|
||||
|
||||
di = get_info (tree_view);
|
||||
|
||||
if (di == NULL)
|
||||
if (di == NULL || y - TREE_VIEW_HEADER_HEIGHT (tree_view) < 0)
|
||||
{
|
||||
/* someone unset us as a drag dest, note that if
|
||||
* we return FALSE drag_leave isn't called
|
||||
@ -5547,6 +5547,14 @@ gtk_tree_view_drag_data_received (GtkWidget *widget,
|
||||
(context->action == GDK_ACTION_MOVE),
|
||||
time);
|
||||
|
||||
if (gtk_tree_path_get_depth (dest_row) == 1
|
||||
&& gtk_tree_path_get_indices (dest_row)[0] == 0)
|
||||
{
|
||||
/* special special case drag to "0", scroll to first item */
|
||||
if (!tree_view->priv->scroll_to_path)
|
||||
gtk_tree_view_scroll_to_cell (tree_view, dest_row, NULL, FALSE, 0.0, 0.0);
|
||||
}
|
||||
|
||||
gtk_tree_path_free (dest_row);
|
||||
|
||||
/* drop dest_row */
|
||||
|
Loading…
Reference in New Issue
Block a user