summaryrefslogtreecommitdiff
path: root/plugins/gtkui/ddbtabstrip.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-09-09 21:47:03 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-09-10 20:39:08 +0200
commit428b2e4d86c920d17f98541ffd7304e1a4da7211 (patch)
tree276db8210e56337ed3f22d1a48afa89211e1b59e /plugins/gtkui/ddbtabstrip.c
parent37f456278eb569f55ccba70d6846b250cac4a01c (diff)
gtkui: ctrl+click and cmd+click handling on osx
Diffstat (limited to 'plugins/gtkui/ddbtabstrip.c')
-rw-r--r--plugins/gtkui/ddbtabstrip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/gtkui/ddbtabstrip.c b/plugins/gtkui/ddbtabstrip.c
index bc180dc2..a6002265 100644
--- a/plugins/gtkui/ddbtabstrip.c
+++ b/plugins/gtkui/ddbtabstrip.c
@@ -890,8 +890,7 @@ on_tabstrip_button_press_event(GtkWidget *widget,
{
DdbTabStrip *ts = DDB_TABSTRIP (widget);
tab_clicked = get_tab_under_cursor (ts, event->x);
- if (event->button == 1)
- {
+ if (TEST_LEFT_CLICK(event)) {
int need_arrows = tabstrip_need_arrows (ts);
if (need_arrows) {
GtkAllocation a;
@@ -950,7 +949,7 @@ on_tabstrip_button_press_event(GtkWidget *widget,
ts->prev_x = event->x;
tab_moved = 0;
}
- else if (event->button == 3) {
+ else if (TEST_RIGHT_CLICK(event)) {
GtkWidget *menu = gtkui_create_pltmenu (tab_clicked);
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, widget, 0, gtk_get_current_event_time());
}