Commit 9a456a19 authored by Julian Sparber's avatar Julian Sparber
Browse files

debian: add 'fix_keyboard_opening_upstream' patches

parent eb7fa6f6
From b0ff9b3e5d5df9978deff5791c59e382100facda Mon Sep 17 00:00:00 2001
From: Julian Sparber <julian@sparber.net>
Date: Wed, 2 Dec 2020 16:57:31 +0100
Subject: [PATCH] Don't show numpad when setting a new alarm/timer
Fixes https://source.puri.sm/Librem5/gnome-clocks/-/issues/26
---
src/alarm-setup-dialog.vala | 4 ++++
src/timer-setup.vala | 4 ++++
2 files changed, 8 insertions(+)
Index: gnome-clocks/src/alarm-setup-dialog.vala
===================================================================
--- gnome-clocks.orig/src/alarm-setup-dialog.vala
+++ gnome-clocks/src/alarm-setup-dialog.vala
@@ -159,6 +159,10 @@ private class SetupDialog : Gtk.Dialog {
am_pm_stack.add (am_pm_button);
am_pm_stack.visible_child = am_pm_button;
}
+ /* Workaround: To keep the osk closed
+ * https://gitlab.gnome.org/GNOME/gtk/merge_requests/978#note_546576 */
+ h_spinbutton.set ("im-module", "gtk-im-context-none", null);
+ m_spinbutton.set ("im-module", "gtk-im-context-none", null);
set_from_alarm ();
}
Index: gnome-clocks/src/timer-setup.vala
===================================================================
--- gnome-clocks.orig/src/timer-setup.vala
+++ gnome-clocks/src/timer-setup.vala
@@ -44,6 +44,10 @@ public class Setup : Gtk.Box {
});
actions.add_action (set_duration_action);
insert_action_group ("timer-setup", actions);
+
+ h_spinbutton.set ("im-module", "gtk-im-context-none", null);
+ m_spinbutton.set ("im-module", "gtk-im-context-none", null);
+ s_spinbutton.set ("im-module", "gtk-im-context-none", null);
}
private int get_duration () {
...@@ -28,3 +28,6 @@ ...@@ -28,3 +28,6 @@
0001-alarm-item-Make-sure-that-the-time-property-is-alway.patch 0001-alarm-item-Make-sure-that-the-time-property-is-alway.patch
0002-alarm-remove-edit-property.patch 0002-alarm-remove-edit-property.patch
0003-alarms-Make-alarms-persisted-and-add-missed-alarms-n.patch 0003-alarms-Make-alarms-persisted-and-add-missed-alarms-n.patch
# Don't show numpad when setting a new alarm/timer:
# https://gitlab.gnome.org/GNOME/gnome-clocks/-/merge_requests/150
0001-Don-t-show-numpad-when-setting-a-new-alarm-timer.patch
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment