Mercurial > geeqie
comparison src/view_dir.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 | 4b2d7f9af171 |
children | 48c8e49b571c |
comparison
equal
deleted
inserted
replaced
447:d87de3a3eb3b | 448:a73cc0fa14d0 |
---|---|
927 FileData *fd = NULL; | 927 FileData *fd = NULL; |
928 | 928 |
929 if (!vd->click_fd) return FALSE; | 929 if (!vd->click_fd) return FALSE; |
930 vd_color_set(vd, vd->click_fd, FALSE); | 930 vd_color_set(vd, vd->click_fd, FALSE); |
931 | 931 |
932 if (bevent->button != 1) return TRUE; | 932 if (bevent->button != MOUSE_BUTTON_LEFT) return TRUE; |
933 | 933 |
934 if ((bevent->x != 0 || bevent->y != 0) && | 934 if ((bevent->x != 0 || bevent->y != 0) && |
935 gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(widget), bevent->x, bevent->y, | 935 gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(widget), bevent->x, bevent->y, |
936 &tpath, NULL, NULL, NULL)) | 936 &tpath, NULL, NULL, NULL)) |
937 { | 937 { |