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)
This commit is contained in:
parent
7de0d97271
commit
18f32d04d2
3 changed files with 12 additions and 3 deletions
|
|
@ -1,5 +1,9 @@
|
|||
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)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue