[nautilus/middle-click-tab-close: 1/2] notebook: Use constants for button events
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/middle-click-tab-close: 1/2] notebook: Use constants for button events
- Date: Tue, 13 Feb 2018 10:48:45 +0000 (UTC)
commit 04aed0a82105480e19531013ee505e1afd08698b
Author: Carlos Soriano <csoriano gnome org>
Date: Tue Feb 13 11:46:03 2018 +0100
notebook: Use constants for button events
src/nautilus-notebook.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-notebook.c b/src/nautilus-notebook.c
index 3db3584cc..70eae9109 100644
--- a/src/nautilus-notebook.c
+++ b/src/nautilus-notebook.c
@@ -146,7 +146,7 @@ button_press_cb (NautilusNotebook *notebook,
tab_clicked = find_tab_num_at_pos (notebook, event->x_root, event->y_root);
if (event->type == GDK_BUTTON_PRESS &&
- event->button == 3 &&
+ event->button == GDK_BUTTON_SECONDARY &&
(event->state & gtk_accelerator_get_default_mod_mask ()) == 0)
{
if (tab_clicked == -1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]