Commit 9e21ed80 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Fix row_spacing/column_spacing confusion. (#330732, Donald Straney)

2006-02-10  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkiconview.c (gtk_icon_view_get_item_at_coords): Fix
        row_spacing/column_spacing confusion.  (#330732, Donald Straney)
parent a2db1601
2006-02-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_get_item_at_coords): Fix
row_spacing/column_spacing confusion. (#330732, Donald Straney)
2006-02-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstyle.c: Add some docs. (#330073, Mart Raudsepp)
......
2006-02-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconview.c (gtk_icon_view_get_item_at_coords): Fix
row_spacing/column_spacing confusion. (#330732, Donald Straney)
2006-02-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstyle.c: Add some docs. (#330073, Mart Raudsepp)
......
......@@ -3101,8 +3101,8 @@ gtk_icon_view_get_item_at_coords (GtkIconView *icon_view,
{
GtkIconViewItem *item = items->data;
if (x >= item->x - icon_view->priv->row_spacing/2 && x <= item->x + item->width + icon_view->priv->row_spacing/2 &&
y >= item->y - icon_view->priv->column_spacing/2 && y <= item->y + item->height + icon_view->priv->column_spacing/2)
if (x >= item->x - icon_view->priv->column_spacing/2 && x <= item->x + item->width + icon_view->priv->column_spacing/2 &&
y >= item->y - icon_view->priv->row_spacing/2 && y <= item->y + item->height + icon_view->priv->row_spacing/2)
{
if (only_in_cell || cell_at_pos)
{
......
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