Merge from stable.

Fri Sep 12 16:32:53 2003  Jonathan Blandford  <jrb@redhat.com>

	Merge from stable.

	* gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
	pressed button (used to determine if we want to initiate a drag later
	on) if the current grab widget is either NULL or tree_view (Reported
	by Jeroen Zwartepoorte).
This commit is contained in:
Jonathan Blandford 2003-09-12 14:46:50 +00:00 committed by Kristian Rietveld
parent df1452102e
commit 9ded36af54
6 changed files with 49 additions and 1 deletions

View File

@ -1,3 +1,12 @@
Fri Sep 12 16:32:53 2003 Jonathan Blandford <jrb@redhat.com>
Merge from stable.
* gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
pressed button (used to determine if we want to initiate a drag later
on) if the current grab widget is either NULL or tree_view (Reported
by Jeroen Zwartepoorte).
2003-09-12 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)

View File

@ -1,3 +1,12 @@
Fri Sep 12 16:32:53 2003 Jonathan Blandford <jrb@redhat.com>
Merge from stable.
* gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
pressed button (used to determine if we want to initiate a drag later
on) if the current grab widget is either NULL or tree_view (Reported
by Jeroen Zwartepoorte).
2003-09-12 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)

View File

@ -1,3 +1,12 @@
Fri Sep 12 16:32:53 2003 Jonathan Blandford <jrb@redhat.com>
Merge from stable.
* gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
pressed button (used to determine if we want to initiate a drag later
on) if the current grab widget is either NULL or tree_view (Reported
by Jeroen Zwartepoorte).
2003-09-12 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)

View File

@ -1,3 +1,12 @@
Fri Sep 12 16:32:53 2003 Jonathan Blandford <jrb@redhat.com>
Merge from stable.
* gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
pressed button (used to determine if we want to initiate a drag later
on) if the current grab widget is either NULL or tree_view (Reported
by Jeroen Zwartepoorte).
2003-09-12 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)

View File

@ -1,3 +1,12 @@
Fri Sep 12 16:32:53 2003 Jonathan Blandford <jrb@redhat.com>
Merge from stable.
* gtk/gtktreeview.c (gtk_tree_view_button_press): only save the
pressed button (used to determine if we want to initiate a drag later
on) if the current grab widget is either NULL or tree_view (Reported
by Jeroen Zwartepoorte).
2003-09-12 Matthias Clasen <maclas@gmx.de>
* gdk/gdkdraw.c (gdk_draw_string, gdk_draw_text)

View File

@ -1991,6 +1991,7 @@ gtk_tree_view_button_press (GtkWidget *widget,
gint column_handled_click = FALSE;
gboolean row_double_click = FALSE;
gboolean rtl;
GtkWidget *grab_widget;
/* are we in an arrow? */
if (tree_view->priv->prelight_node &&
@ -2186,7 +2187,9 @@ gtk_tree_view_button_press (GtkWidget *widget,
/* Save press to possibly begin a drag
*/
if (!column_handled_click &&
grab_widget = gtk_grab_get_current ();
if ((grab_widget == NULL || grab_widget == tree_view) &&
!column_handled_click &&
tree_view->priv->pressed_button < 0)
{
tree_view->priv->pressed_button = event->button;