gtktreeviewcolumn: Use symbolic names for button numbers

This commit is contained in:
Carlos Garcia Campos 2012-01-25 19:05:25 +01:00 committed by Carlos Garcia Campos
parent 349b1eff03
commit 67c3bf7b02

View File

@ -1104,7 +1104,7 @@ gtk_tree_view_column_button_event (GtkWidget *widget,
if (event->type == GDK_BUTTON_PRESS &&
priv->reorderable &&
((GdkEventButton *)event)->button == 1)
((GdkEventButton *)event)->button == GDK_BUTTON_PRIMARY)
{
priv->maybe_reordered = TRUE;
gdk_window_get_device_position (gtk_button_get_event_window (GTK_BUTTON (widget)),