Skip to content
Permalink
Browse files

mouse: add middle button emulation switch

  • Loading branch information...
ericek111 authored and monsta committed May 14, 2018
1 parent 3d3bb8b commit acbde9510e9325b54a5508edbe19199917d44962
Showing with 35 additions and 2 deletions.
  1. +4 −0 capplets/mouse/mate-mouse-properties.c
  2. +31 −2 capplets/mouse/mate-mouse-properties.ui
@@ -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",
@@ -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>

0 comments on commit acbde95

Please sign in to comment.
You can’t perform that action at this time.