Mercurial > geeqie.yaz
comparison src/ui_bookmark.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 |
comparison
equal
deleted
inserted
replaced
447:d87de3a3eb3b | 448:a73cc0fa14d0 |
---|---|
733 | 733 |
734 static gint bookmark_press_cb(GtkWidget *button, GdkEventButton *event, gpointer data) | 734 static gint bookmark_press_cb(GtkWidget *button, GdkEventButton *event, gpointer data) |
735 { | 735 { |
736 BookMarkData *bm = data; | 736 BookMarkData *bm = data; |
737 | 737 |
738 if (event->button != 3) return FALSE; | 738 if (event->button != MOUSE_BUTTON_RIGHT) return FALSE; |
739 | 739 |
740 bookmark_menu_popup(bm, button, event->button, event->time, FALSE); | 740 bookmark_menu_popup(bm, button, event->button, event->time, FALSE); |
741 | 741 |
742 return TRUE; | 742 return TRUE; |
743 } | 743 } |