Commit 18f32d04 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Be more careful about initializing cell_area. (#319382, Tommi Komulainen)

2005-10-27  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_button_press): Be more
	careful about initializing cell_area.  (#319382, Tommi
	Komulainen)
parent 7de0d972
2005-10-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Be more
careful about initializing cell_area. (#319382, Tommi
Komulainen)
* gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
Ctrl-PageUp/PageDown. (#318670, Christian Neumair)
......
2005-10-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_button_press): Be more
careful about initializing cell_area. (#319382, Tommi
Komulainen)
* gtk/gtkcombobox.c (gtk_combo_box_key_press): Don't eat
Ctrl-PageUp/PageDown. (#318670, Christian Neumair)
......
......@@ -2258,12 +2258,12 @@ gtk_tree_view_button_press (GtkWidget *widget,
for (list = (rtl ? g_list_last (tree_view->priv->columns) : g_list_first (tree_view->priv->columns));
list; list = (rtl ? list->prev : list->next))
{
column = list->data;
GtkTreeViewColumn *candidate = list->data;
if (!column->visible)
if (!candidate->visible)
continue;
background_area.width = column->width;
background_area.width = candidate->width;
if ((background_area.x > (gint) event->x) ||
(background_area.x + background_area.width <= (gint) event->x))
{
......@@ -2272,6 +2272,7 @@ gtk_tree_view_button_press (GtkWidget *widget,
}
/* we found the focus column */
column = candidate;
cell_area = background_area;
cell_area.width -= horizontal_separator;
cell_area.height -= vertical_separator;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment