Mercurial > geeqie
diff src/utilops.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/utilops.c Sun Apr 20 20:35:26 2008 +0000 +++ b/src/utilops.c Sun Apr 20 21:30:36 2008 +0000 @@ -1721,11 +1721,11 @@ static void file_util_delete_multiple_review_button_cb(ImageWindow *imd, gint button, guint32 time, gdouble x, gdouble y, guint state, gpointer data) { - if (button == 1) + if (button == MOUSE_BUTTON_LEFT) { file_util_delete_multiple_review_next(NULL, data); } - else if (button == 2 || button == 3) + else if (button == MOUSE_BUTTON_MIDDLE || button == MOUSE_BUTTON_RIGHT) { file_util_delete_multiple_review_back(NULL, data); }