Accepting request 897044 from home:qzhao:branches:GNOME:Factory

Add libgnomekbd-set-default-indicator.patch: set the common keyboard layout indicator as "default" to avoid misleading (bnc#1034390).

OBS-URL: https://build.opensuse.org/request/show/897044
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libgnomekbd?expand=0&rev=85
This commit is contained in:
Dominique Leuenberger 2021-06-03 10:40:17 +00:00 committed by Git OBS Bridge
parent 53b76055a8
commit e97b4b06e3
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -Nura libgnomekbd-3.26.1/libgnomekbd/gkbd-keyboard-drawing.c libgnomekbd-3.26.1_new/libgnomekbd/gkbd-keyboard-drawing.c
--- libgnomekbd-3.26.1/libgnomekbd/gkbd-keyboard-drawing.c 2021-06-03 11:27:52.595837755 +0800
+++ libgnomekbd-3.26.1_new/libgnomekbd/gkbd-keyboard-drawing.c 2021-06-03 11:29:45.775631415 +0800
@@ -2748,7 +2748,7 @@
XklConfigRegistry * registry,
const gchar * full_layout)
{
- const gchar *layout_name = "?";
+ const gchar *layout_name = "default";
XklConfigItem *xki = xkl_config_item_new ();
gchar *layout = NULL, *variant = NULL;

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon May 24 15:13:24 UTC 2021 - Cliff Zhao <qzhao@suse.com>
- Add libgnomekbd-set-default-indicator.patch: set the common
keyboard layout indicator as "default" to avoid misleading
(bnc#1034390).
-------------------------------------------------------------------
Fri Apr 2 12:03:02 UTC 2021 - Cliff Zhao <qzhao@suse.com>

View File

@ -27,6 +27,8 @@ URL: https://gitlab.gnome.org/GNOME/libgnomekbd
Source0: https://download.gnome.org/sources/libgnomekbd/3.26/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM libgnomekbd-avoid-coredump-on-ibus-engines.patch bnc#1160963, glgo#GNOME/libgnomekbd!6 qzhao@suse.com -- To avoid crash when working with ibus.
Patch0: libgnomekbd-avoid-coredump-on-ibus-engines.patch
# PATCH-FIX-OPENSUSE libgnomekbd-set-default-indicator.patch bnc#1034390 qzhao@suse.com -- set the common keyboard layout indicator as default to avoid misleading.
Patch1: libgnomekbd-set-default-indicator.patch
BuildRequires: desktop-file-utils
BuildRequires: fdupes
BuildRequires: intltool