diff --git a/ChangeLog b/ChangeLog index 090bd349b..2c170f766 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-10-27 Matthias Clasen + * 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) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 090bd349b..2c170f766 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2005-10-27 Matthias Clasen + * 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) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index b4460d945..8bc500b5c 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -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;