diff options
Diffstat (limited to 'panels/mouse/cc-mouse-panel.ui')
-rw-r--r-- | panels/mouse/cc-mouse-panel.ui | 752 |
1 files changed, 752 insertions, 0 deletions
diff --git a/panels/mouse/cc-mouse-panel.ui b/panels/mouse/cc-mouse-panel.ui new file mode 100644 index 0000000..bcfde6d --- /dev/null +++ b/panels/mouse/cc-mouse-panel.ui @@ -0,0 +1,752 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <template class="CcMousePanel" parent="CcPanel"> + <property name="visible">True</property> + <child> + <object class="GtkStack" id="stack"> + <property name="visible">True</property> + <child> + <object class="GtkScrolledWindow" id="scrolled_window"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="shadow_type">none</property> + <property name="hscrollbar_policy">never</property> + <signal name="size-allocate" handler="on_content_size_changed" object="CcMousePanel" swapped="yes"/> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">center</property> + <property name="margin_top">32</property> + <property name="margin_bottom">32</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkFrame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="shadow_type">in</property> + <property name="margin_bottom">32</property> + <property name="label_yalign">0.45</property> + <property name="shadow_type">none</property> + <child type="label"> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">General</property> + <property name="margin_bottom">12</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + </child> + <child> + <object class="GtkFrame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkListBox" id="general_listbox"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="selection_mode">none</property> + <child> + <object class="GtkListBoxRow" id="primary_button_row"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">2</property> + <property name="column_spacing">16</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">12</property> + <property name="margin_bottom">12</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Primary Button</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">primary_button_row</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="max-width-chars">20</property> + <property name="wrap">True</property> + <property name="wrap-mode">word</property> + <property name="label" translatable="yes">Sets the order of physical buttons on mice and touchpads.</property> + <style> + <class name="dim-label"/> + </style> + <attributes> + <attribute name="scale" value="0.9"/> + </attributes> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">1</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="valign">center</property> + <property name="column_homogeneous">True</property> + <style> + <class name="linked"/> + </style> + <child> + <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" translatable="yes">Left</property> + <property name="draw-indicator">False</property> + <property name="height_request">35</property> + </object> + </child> + <child> + <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" translatable="yes">Right</property> + <property name="draw-indicator">False</property> + <property name="group">primary_button_left</property> + <property name="height_request">35</property> + </object> + </child> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkFrame" id="mouse_frame"> + <property name="visible">False</property> + <property name="can_focus">False</property> + <property name="shadow_type">none</property> + <property name="label_yalign">0.45</property> + <property name="margin_bottom">32</property> + <child type="label"> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Mouse</property> + <property name="margin_bottom">12</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + </child> + <child> + <object class="GtkFrame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkListBox" id="mouse_listbox"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="selection_mode">none</property> + <child> + <object class="GtkListBoxRow" id="mouse_row"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">0</property> + <property name="column_spacing">32</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">8</property> + <property name="margin_bottom">8</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="valign">end</property> + <property name="label" translatable="yes">Mouse Speed</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">mouse_speed_scale</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkScale" id="mouse_speed_scale"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="adjustment">mouse_speed_adjustment</property> + <property name="draw_value">False</property> + <property name="width-request">300</property> + <property name="halign">end</property> + <property name="expand">True</property> + <child internal-child="accessible"> + <object class="AtkObject"> + <property name="AtkObject::accessible-description" translatable="yes">Double-click timeout</property> + </object> + </child> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkListBoxRow" id="mouse_natural_scrolling_row"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">2</property> + <property name="column_spacing">16</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">6</property> + <property name="margin_bottom">6</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes" comments="Translators: This switch reverses the scrolling direction for mices. The term used comes from OS X so use the same translation if possible.">Natural Scrolling</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">mouse_natural_scrolling_switch</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Scrolling moves the content, not the view.</property> + <style> + <class name="dim-label"/> + </style> + <attributes> + <attribute name="scale" value="0.9"/> + </attributes> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">1</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkSwitch" id="mouse_natural_scrolling_switch"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="halign">end</property> + <property name="valign">center</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkFrame" id="touchpad_frame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="shadow_type">none</property> + <property name="label_yalign">0.45</property> + <child type="label"> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Touchpad</property> + <property name="margin_bottom">12</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + </child> + <child> + <object class="GtkFrame" id="touchpad_frame_listbox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkBox" id="touchpad_box"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkListBox" id="touchpad_listbox"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="selection_mode">none</property> + <child> + <object class="GtkListBoxRow" id="touchpad_toggle_row"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">0</property> + <property name="column_spacing">32</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">12</property> + <property name="margin_bottom">12</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="valign">end</property> + <property name="label" translatable="yes">Touchpad</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">touchpad_toggle_switch</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkSwitch" id="touchpad_toggle_switch"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="halign">end</property> + <property name="valign">center</property> + <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkListBoxRow" id="touchpad_natural_scrolling_row"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">2</property> + <property name="column_spacing">16</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">6</property> + <property name="margin_bottom">6</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes" comments="Translators: This switch reverses the scrolling direction for touchpads. The term used comes from OS X so use the same translation if possible. ">Natural Scrolling</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">touchpad_natural_scrolling_switch</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Scrolling moves the content, not the view.</property> + <style> + <class name="dim-label"/> + </style> + <attributes> + <attribute name="scale" value="0.9"/> + </attributes> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">1</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkSwitch" id="touchpad_natural_scrolling_switch"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="halign">end</property> + <property name="valign">center</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkListBoxRow" id="touchpad_speed_row"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">0</property> + <property name="column_spacing">16</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">8</property> + <property name="margin_bottom">8</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="valign">end</property> + <property name="label" translatable="yes">Touchpad Speed</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">touchpad_speed_scale</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkScale" id="touchpad_speed_scale"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="adjustment">touchpad_speed_adjustment</property> + <property name="draw_value">False</property> + <property name="expand">True</property> + <property name="halign">end</property> + <child internal-child="accessible"> + <object class="AtkObject"> + <property name="AtkObject::accessible-description" translatable="yes">Double-click timeout</property> + </object> + </child> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkListBoxRow" id="tap_to_click_row"> + <property name="visible">False</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">0</property> + <property name="column_spacing">32</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">12</property> + <property name="margin_bottom">12</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="valign">end</property> + <property name="label" translatable="yes">Tap to Click</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">tap_to_click_switch</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkSwitch" id="tap_to_click_switch"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="halign">end</property> + <property name="valign">center</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkListBoxRow" id="two_finger_scrolling_row"> + <property name="visible">False</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">0</property> + <property name="column_spacing">32</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">12</property> + <property name="margin_bottom">12</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="valign">end</property> + <property name="label" translatable="yes">Two-finger Scrolling</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">two_finger_scrolling_switch</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkSwitch" id="two_finger_scrolling_switch"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="halign">end</property> + <property name="valign">center</property> + <signal name="state-set" handler="two_finger_scrolling_changed_event" object="CcMousePanel" swapped="yes"/> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkListBoxRow" id="edge_scrolling_row"> + <property name="visible">False</property> + <property name="can_focus">True</property> + <property name="activatable">false</property> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="row_spacing">0</property> + <property name="column_spacing">32</property> + <property name="margin_start">20</property> + <property name="margin_end">20</property> + <property name="margin_top">12</property> + <property name="margin_bottom">12</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="valign">end</property> + <property name="label" translatable="yes">Edge Scrolling</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">edge_scrolling_switch</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkSwitch" id="edge_scrolling_switch"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="halign">end</property> + <property name="valign">center</property> + <signal name="state-set" handler="edge_scrolling_changed_event" object="CcMousePanel" swapped="yes"/> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">2</property> + </packing> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="CcMouseTest" id="mouse_test"> + <property name="visible">True</property> + </object> + </child> + </object> + </child> + </template> + <object class="GtkToggleButton" id="test_button"> + <property name="visible">True</property> + <property name="use_underline">True</property> + <property name="valign">center</property> + <property name="label" translatable="yes">Test Your _Settings</property> + <signal name="toggled" handler="test_button_toggled_cb" object="CcMousePanel" swapped="yes"/> + <style> + <class name="text-button"/> + </style> + </object> + <object class="GtkAdjustment" id="mouse_speed_adjustment"> + <property name="lower">-1</property> + <property name="upper">1</property> + </object> + <object class="GtkAdjustment" id="touchpad_speed_adjustment"> + <property name="lower">-1</property> + <property name="upper">1</property> + </object> + <object class="GtkSizeGroup"> + <property name="mode">vertical</property> + <widgets> + <widget name="mouse_row"/> + <widget name="mouse_natural_scrolling_row"/> + <widget name="touchpad_toggle_row"/> + <widget name="touchpad_natural_scrolling_row"/> + <widget name="touchpad_speed_row"/> + <widget name="tap_to_click_row"/> + <widget name="edge_scrolling_row"/> + </widgets> + </object> + <object class="GtkSizeGroup"> + <property name="mode">horizontal</property> + <widgets> + <widget name="mouse_speed_scale"/> + <widget name="touchpad_speed_scale"/> + </widgets> + </object> +</interface> |