Page Menu
Home
Solus
Search
Configure Global Search
Log In
Files
F11036708
D11886.id28908.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
D11886.id28908.diff
View Options
diff --git a/files/0001-Add-acceleration-profile-setting-to-Mouse-section.patch b/files/0001-Add-acceleration-profile-setting-to-Mouse-section.patch
new file mode 100644
--- /dev/null
+++ b/files/0001-Add-acceleration-profile-setting-to-Mouse-section.patch
@@ -0,0 +1,76 @@
+From fbaf4429d64578a1d0a26f7f7cbc94dfdf61771d Mon Sep 17 00:00:00 2001
+From: Campbell Jones <git@serebit.com>
+Date: Wed, 22 Sep 2021 15:39:03 -0400
+Subject: [PATCH] Add acceleration profile setting to Mouse section
+
+---
+ panels/mouse/cc-mouse-panel.c | 6 ++++++
+ panels/mouse/cc-mouse-panel.ui | 21 +++++++++++++++++++++
+ 2 files changed, 27 insertions(+)
+
+diff --git a/panels/mouse/cc-mouse-panel.c b/panels/mouse/cc-mouse-panel.c
+index ddf3fc1a8..2b2ec99f0 100644
+--- a/panels/mouse/cc-mouse-panel.c
++++ b/panels/mouse/cc-mouse-panel.c
+@@ -42,6 +42,7 @@ struct _CcMousePanel
+ GtkFrame *mouse_frame;
+ GtkListBox *mouse_listbox;
+ GtkSwitch *mouse_natural_scrolling_switch;
++ GtkComboBox *mouse_acceleration_profile_box;
+ GtkScale *mouse_speed_scale;
+ CcMouseTest *mouse_test;
+ GtkBox *primary_button_box;
+@@ -227,6 +228,10 @@ setup_dialog (CcMousePanel *self)
+ self->left_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (button));
+ handle_secondary_button (self, button, self->left_gesture);
+
++ g_settings_bind (self->mouse_settings, "accel-profile",
++ self->mouse_acceleration_profile_box, "active-id",
++ G_SETTINGS_BIND_DEFAULT);
++
+ g_settings_bind (self->mouse_settings, "natural-scroll",
+ self->mouse_natural_scrolling_switch, "active",
+ G_SETTINGS_BIND_DEFAULT);
+@@ -421,6 +426,7 @@ cc_mouse_panel_class_init (CcMousePanelClass *klass)
+ gtk_widget_class_bind_template_child (widget_class, CcMousePanel, mouse_frame);
+ gtk_widget_class_bind_template_child (widget_class, CcMousePanel, mouse_listbox);
+ gtk_widget_class_bind_template_child (widget_class, CcMousePanel, mouse_natural_scrolling_switch);
++ gtk_widget_class_bind_template_child (widget_class, CcMousePanel, mouse_acceleration_profile_box);
+ gtk_widget_class_bind_template_child (widget_class, CcMousePanel, mouse_speed_scale);
+ gtk_widget_class_bind_template_child (widget_class, CcMousePanel, mouse_test);
+ gtk_widget_class_bind_template_child (widget_class, CcMousePanel, primary_button_box);
+diff --git a/panels/mouse/cc-mouse-panel.ui b/panels/mouse/cc-mouse-panel.ui
+index 883666361..64e922127 100644
+--- a/panels/mouse/cc-mouse-panel.ui
++++ b/panels/mouse/cc-mouse-panel.ui
+@@ -158,6 +158,27 @@
+ </child>
+ </object>
+ </child>
++ <child>
++ <object class="HdyActionRow" id="mouse_acceleration_row">
++ <property name="visible">True</property>
++ <property name="can_focus">True</property>
++ <property name="activatable">false</property>
++ <property name="title" translatable="yes">Acceleration Profile</property>
++ <property name="subtitle" translatable="yes">How the pointer moves when you move the mouse.</property>
++ <child>
++ <object class="GtkComboBoxText" id="mouse_acceleration_profile_box">
++ <property name="visible">True</property>
++ <property name="can_focus">False</property>
++ <property name="valign">center</property>
++ <items>
++ <item id="default" translatable="yes">Default</item>
++ <item id="flat" translatable="yes">Flat</item>
++ <item id="adaptive" translatable="yes">Adaptive</item>
++ </items>
++ </object>
++ </child>
++ </object>
++ </child>
+ <child>
+ <object class="HdyActionRow" id="mouse_natural_scrolling_row">
+ <property name="visible">True</property>
+--
+2.32.0
+
diff --git a/files/series b/files/series
--- a/files/series
+++ b/files/series
@@ -4,4 +4,4 @@
0001-What-do-we-say-to-libhandy-as-a-shared-lib.patch
0001-Handle-scenario-where-org.gnome.shell.app-switcher-s.patch
0004-Revert-info-overview-Implements-usage-of-os-release-.patch
-
+0001-Add-acceleration-profile-setting-to-Mouse-section.patch
diff --git a/package.yml b/package.yml
--- a/package.yml
+++ b/package.yml
@@ -1,6 +1,6 @@
name : gnome-control-center
version : 41.0
-release : 116
+release : 117
source :
- git|https://gitlab.gnome.org/GNOME/gnome-control-center.git : 41.0
license : GPL-2.0-only
diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml
--- a/pspec_x86_64.xml
+++ b/pspec_x86_64.xml
@@ -2,8 +2,8 @@
<Source>
<Name>gnome-control-center</Name>
<Packager>
- <Name>Joshua Strobl</Name>
- <Email>joshua@getsol.us</Email>
+ <Name>Campbell Jones</Name>
+ <Email>dev@serebit.com</Email>
</Packager>
<License>GPL-2.0-only</License>
<PartOf>desktop.gnome</PartOf>
@@ -371,19 +371,19 @@
</Description>
<PartOf>programming.devel</PartOf>
<RuntimeDependencies>
- <Dependency release="116">gnome-control-center</Dependency>
+ <Dependency release="117">gnome-control-center</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/share/pkgconfig/gnome-keybindings.pc</Path>
</Files>
</Package>
<History>
- <Update release="116">
- <Date>2021-09-19</Date>
+ <Update release="117">
+ <Date>2021-09-22</Date>
<Version>41.0</Version>
<Comment>Packaging update</Comment>
- <Name>Joshua Strobl</Name>
- <Email>joshua@getsol.us</Email>
+ <Name>Campbell Jones</Name>
+ <Email>dev@serebit.com</Email>
</Update>
</History>
</PISI>
\ No newline at end of file
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 10, 7:39 PM (1 d, 3 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5808245
Default Alt Text
D11886.id28908.diff (6 KB)
Attached To
Mode
D11886: Add mouse acceleration setting to GNOME Control Center
Attached
Detach File
Event Timeline
Log In to Comment