Don't mess up the column header state if the button release event is

2004-12-07  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
	Don't mess up the column header state if the button release
	event is missed.  (#159640)
This commit is contained in:
Matthias Clasen 2004-12-08 03:17:41 +00:00 committed by Matthias Clasen
parent d13ca423d3
commit d4d6f28ae2
5 changed files with 44 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Don't mess up the column header state if the button release
event is missed. (#159640)
2004-12-07 Marco Pesenti Gritti <marco@gnome.org>
* gtk/gtkcellview.c: (gtk_cell_view_set_background_color):
@ -11,6 +17,10 @@
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Don't mess up the column header state if the button release
event is missed. (#159640)
* docs/tools/widgets.h (enum): Add an ASIS widget size.
* docs/tools/widgets.c (get_all_widgets): Add file chooser,

View File

@ -1,3 +1,9 @@
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Don't mess up the column header state if the button release
event is missed. (#159640)
2004-12-07 Marco Pesenti Gritti <marco@gnome.org>
* gtk/gtkcellview.c: (gtk_cell_view_set_background_color):
@ -11,6 +17,10 @@
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Don't mess up the column header state if the button release
event is missed. (#159640)
* docs/tools/widgets.h (enum): Add an ASIS widget size.
* docs/tools/widgets.c (get_all_widgets): Add file chooser,

View File

@ -1,3 +1,9 @@
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Don't mess up the column header state if the button release
event is missed. (#159640)
2004-12-07 Marco Pesenti Gritti <marco@gnome.org>
* gtk/gtkcellview.c: (gtk_cell_view_set_background_color):
@ -11,6 +17,10 @@
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Don't mess up the column header state if the button release
event is missed. (#159640)
* docs/tools/widgets.h (enum): Add an ASIS widget size.
* docs/tools/widgets.c (get_all_widgets): Add file chooser,

View File

@ -1,3 +1,9 @@
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Don't mess up the column header state if the button release
event is missed. (#159640)
2004-12-07 Marco Pesenti Gritti <marco@gnome.org>
* gtk/gtkcellview.c: (gtk_cell_view_set_background_color):
@ -11,6 +17,10 @@
2004-12-07 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_button_event):
Don't mess up the column header state if the button release
event is missed. (#159640)
* docs/tools/widgets.h (enum): Add an ASIS widget size.
* docs/tools/widgets.c (get_all_widgets): Add file chooser,

View File

@ -1058,12 +1058,12 @@ gtk_tree_view_column_button_event (GtkWidget *widget,
gtk_widget_grab_focus (widget);
}
if (event->type == GDK_BUTTON_RELEASE &&
column->maybe_reordered)
if (event->type == GDK_BUTTON_RELEASE ||
event->type == GDK_LEAVE_NOTIFY)
column->maybe_reordered = FALSE;
if (event->type == GDK_MOTION_NOTIFY &&
(column->maybe_reordered) &&
column->maybe_reordered &&
(gtk_drag_check_threshold (widget,
column->drag_x,
column->drag_y,