Commit 80b414ef authored by Carlos Garcia Campos's avatar Carlos Garcia Campos Committed by Carlos Garcia Campos

examples: Use symbolic names for button numbers

parent f7c6c977
......@@ -86,11 +86,11 @@ button_press_event_cb (GtkWidget *widget,
if (surface == NULL)
return FALSE;
if (event->button == 1)
if (event->button == GDK_BUTTON_PRIMARY)
draw_brush (widget, event->x, event->y);
else if (event->button == 3)
else if (event->button == GDK_BUTTON_SECONDARY)
clear_surface ();
gtk_widget_queue_draw (widget);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment