diff options
author | Erik Bročko <[email protected]> | 2018-05-14 14:52:06 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2018-05-14 15:52:06 +0300 |
commit | acbde9510e9325b54a5508edbe19199917d44962 (patch) | |
tree | b0d55ac6a2e696a5c5ab200747f501a50fb3990a /capplets | |
parent | 3d3bb8bb8db3f3e87abb6ba74718db9d9638c373 (diff) | |
download | mate-control-center-acbde9510e9325b54a5508edbe19199917d44962.tar.bz2 mate-control-center-acbde9510e9325b54a5508edbe19199917d44962.tar.xz |
mouse: add middle button emulation switch
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/mouse/mate-mouse-properties.c | 4 | ||||
-rw-r--r-- | capplets/mouse/mate-mouse-properties.ui | 33 |
2 files changed, 35 insertions, 2 deletions
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 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.20.0 --> +<!-- Generated with glade 3.22.1 --> <interface> <requires lib="gtk+" version="3.14"/> <!-- interface-license-type gplv2 --> @@ -57,6 +57,9 @@ <property name="default_width">500</property> <property name="default_height">550</property> <property name="type_hint">dialog</property> + <child> + <placeholder/> + </child> <child internal-child="vbox"> <object class="GtkBox" id="dialog-vbox1"> <property name="visible">True</property> @@ -221,7 +224,7 @@ <property name="can_focus">False</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> <property name="halign">start</property> - <property name="label" translatable="yes">Locate Pointer</property> + <property name="label" translatable="yes">General</property> <attributes> <attribute name="weight" value="bold"/> </attributes> @@ -258,6 +261,32 @@ <property name="position">1</property> </packing> </child> + <child> + <object class="GtkAlignment" id="alignment19"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="top_padding">6</property> + <property name="left_padding">12</property> + <child> + <object class="GtkCheckButton" id="middle_button_emulation_toggle"> + <property name="label" translatable="yes">Emulate middle button through simultaneous left and right click</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> + <property name="halign">start</property> + <property name="use_underline">True</property> + <property name="active">True</property> + <property name="draw_indicator">True</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> </object> <packing> <property name="expand">False</property> |