gtkcellarea: Use symbolic names for button numbers

This commit is contained in:
Carlos Garcia Campos 2012-01-25 18:20:23 +01:00 committed by Carlos Garcia Campos
parent c5d9c6f27c
commit f8e9d264da

View File

@ -1069,7 +1069,7 @@ gtk_cell_area_real_event (GtkCellArea *area,
{
GdkEventButton *button_event = (GdkEventButton *)event;
if (button_event->button == 1)
if (button_event->button == GDK_BUTTON_PRIMARY)
{
GtkCellRenderer *renderer = NULL;
GtkCellRenderer *focus_renderer;