mouse: Fix right-/left-handed buttons getting out of sync

Make the two independent buttons into a group of radio buttons without
an indicator to make sure they stay in sync (one enabled, one disabled).

https://bugzilla.gnome.org/show_bug.cgi?id=756863
This commit is contained in:
Bastien Nocera 2015-10-28 12:05:55 +01:00
parent b37165de9c
commit d6970f1c58

View file

@ -121,19 +121,22 @@
<class name="linked"/>
</style>
<child>
<object class="GtkToggleButton" id="primary-button-left">
<object class="GtkRadioButton" id="primary-button-left">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="label">Left</property>
<property name="draw-indicator">False</property>
</object>
</child>
<child>
<object class="GtkToggleButton" id="primary-button-right">
<object class="GtkRadioButton" id="primary-button-right">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="label">Right</property>
<property name="draw-indicator">False</property>
<property name="group">primary-button-left</property>
</object>
</child>
</object>