File: 0001_plugins-language-hardwarekeyboard-plugin.cpp-Registe.patch

package info (click to toggle)
lomiri-system-settings 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,484 kB
  • sloc: cpp: 15,892; python: 5,994; xml: 362; javascript: 80; makefile: 46; sh: 5
file content (38 lines) | stat: -rw-r--r-- 1,351 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 458a69fbe87fae55d842d586d2993fc1c29d7485 Mon Sep 17 00:00:00 2001
From: Robert Tari <robert@tari.in>
Date: Fri, 13 Jun 2025 14:56:47 +0200
Subject: [PATCH] plugins/language/hardwarekeyboard-plugin.cpp: Register
 missing D-Bus types

fixes https://salsa.debian.org/ubports-team/lomiri-system-settings/-/issues/19

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
 plugins/language/hardwarekeyboard-plugin.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/plugins/language/hardwarekeyboard-plugin.cpp b/plugins/language/hardwarekeyboard-plugin.cpp
index a74ed409..6317922c 100644
--- a/plugins/language/hardwarekeyboard-plugin.cpp
+++ b/plugins/language/hardwarekeyboard-plugin.cpp
@@ -31,13 +31,16 @@
 #define SOURCES_CONFIG_SCHEMA_ID "org.gnome.desktop.input-sources"
 #define SOURCES_KEY "sources"
 
-typedef QList<QMap<QString, QString>> StringMapList;
+using StringMap = QMap<QString,QString>;
+using StringMapList = QList<StringMap>;
+Q_DECLARE_METATYPE(StringMap)
 Q_DECLARE_METATYPE(StringMapList)
 
 HardwareKeyboardPlugin::HardwareKeyboardPlugin(QObject *parent) :
     QObject(parent),
     m_sourcesSettings(g_settings_new(SOURCES_CONFIG_SCHEMA_ID))
 {
+    qDBusRegisterMetaType<StringMap>();
     qDBusRegisterMetaType<StringMapList>();
     m_xkbInfo = gnome_xkb_info_new();
 
-- 
2.47.2