Mercurial > geeqie
diff src/info.c @ 448:a73cc0fa14d0
Use explicit names for mouse buttons instead of numbers.
MOUSE_BUTTON_LEFT = 1
MOUSE_BUTTON_MIDDLE = 2
MOUSE_BUTTON_RIGHT = 3
It makes the code easier to read.
author | zas_ |
---|---|
date | Sun, 20 Apr 2008 21:30:36 +0000 |
parents | ddabc4873a3f |
children | 48c8e49b571c |
line wrap: on
line diff
--- a/src/info.c Sun Apr 20 20:35:26 2008 +0000 +++ b/src/info.c Sun Apr 20 21:30:36 2008 +0000 @@ -696,11 +696,11 @@ static void info_window_image_button_cb(ImageWindow *imd, gint button, guint32 time, gdouble x, gdouble y, guint state, gpointer data) { - if (button == 1) + if (button == MOUSE_BUTTON_LEFT) { info_window_next_cb(NULL, data); } - else if (button == 2 || button == 3) + else if (button == MOUSE_BUTTON_MIDDLE || button == MOUSE_BUTTON_RIGHT) { info_window_back_cb(NULL, data); }