From 832105243466c78dbfd2f8eb51f2c963f9ccb692 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 12 Feb 2004 00:15:50 +0000 Subject: [PATCH] Call gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work Thu Feb 12 01:17:01 2004 Matthias Clasen * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work for automatic DND. (#133485, Tommi Komulainen) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktreeview.c | 6 ++++++ 6 files changed, 36 insertions(+) diff --git a/ChangeLog b/ChangeLog index da52c021cb..695eafb049 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 12 01:17:01 2004 Matthias Clasen + + * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call + gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work + for automatic DND. (#133485, Tommi Komulainen) + Thu Feb 12 00:37:00 2004 Matthias Clasen * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index da52c021cb..695eafb049 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Thu Feb 12 01:17:01 2004 Matthias Clasen + + * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call + gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work + for automatic DND. (#133485, Tommi Komulainen) + Thu Feb 12 00:37:00 2004 Matthias Clasen * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index da52c021cb..695eafb049 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Thu Feb 12 01:17:01 2004 Matthias Clasen + + * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call + gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work + for automatic DND. (#133485, Tommi Komulainen) + Thu Feb 12 00:37:00 2004 Matthias Clasen * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index da52c021cb..695eafb049 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Thu Feb 12 01:17:01 2004 Matthias Clasen + + * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call + gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work + for automatic DND. (#133485, Tommi Komulainen) + Thu Feb 12 00:37:00 2004 Matthias Clasen * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index da52c021cb..695eafb049 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Thu Feb 12 01:17:01 2004 Matthias Clasen + + * gtk/gtktreeview.c (gtk_tree_view_enable_model_drag_source): Call + gtk_drag_source_set(), so that things like gtk_drag_set_icon_*() work + for automatic DND. (#133485, Tommi Komulainen) + Thu Feb 12 00:37:00 2004 Matthias Clasen * gdk/x11/gdkproperty-x11.c (gdk_property_change): Fix misleading diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 8aa0a09c79..240fa36caa 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -10925,6 +10925,12 @@ gtk_tree_view_enable_model_drag_source (GtkTreeView *tree_view, g_return_if_fail (GTK_IS_TREE_VIEW (tree_view)); + gtk_drag_source_set (GTK_WIDGET (tree_view), + 0, + NULL, + 0, + actions); + di = ensure_info (tree_view); clear_source_info (di);