From acbde9510e9325b54a5508edbe19199917d44962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bro=C4=8Dko?= Date: Mon, 14 May 2018 14:52:06 +0200 Subject: mouse: add middle button emulation switch --- capplets/mouse/mate-mouse-properties.c | 4 ++++ capplets/mouse/mate-mouse-properties.ui | 33 +++++++++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) (limited to 'capplets') diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c index 1ecb95e4..69e84a56 100644 --- a/capplets/mouse/mate-mouse-properties.c +++ b/capplets/mouse/mate-mouse-properties.c @@ -267,6 +267,10 @@ setup_dialog (GtkBuilder *dialog) g_settings_bind (mouse_settings, "locate-pointer", WID ("locate_pointer_toggle"), "active", G_SETTINGS_BIND_DEFAULT); + /* Middle Button Emulation */ + g_settings_bind (mouse_settings, "middle-button-enabled", WID ("middle_button_emulation_toggle"), + "active", G_SETTINGS_BIND_DEFAULT); + /* Double-click time */ g_settings_bind (mouse_settings, DOUBLE_CLICK_KEY, gtk_range_get_adjustment (GTK_RANGE (WID ("delay_scale"))), "value", diff --git a/capplets/mouse/mate-mouse-properties.ui b/capplets/mouse/mate-mouse-properties.ui index 79214d10..aea5fcc2 100644 --- a/capplets/mouse/mate-mouse-properties.ui +++ b/capplets/mouse/mate-mouse-properties.ui @@ -1,5 +1,5 @@ - + @@ -57,6 +57,9 @@ 500 550 dialog + + + True @@ -221,7 +224,7 @@ False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK start - Locate Pointer + General @@ -258,6 +261,32 @@ 1 + + + True + False + 6 + 12 + + + Emulate middle button through simultaneous left and right click + True + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + start + True + True + True + + + + + False + True + 2 + + False -- cgit v1.2.1