[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-desktop] kcms/keyboard: [kcm/keyboard] Call the OSD service asynchronously when layout is ch
From:       Àlex_Fiestas <afiestas () kde ! org>
Date:       2014-04-15 13:31:29
Message-ID: E1Wa3ST-0001Zt-P3 () scm ! kde ! org
[Download RAW message or body]

Git commit c610fe07e4f4d4aec1d96f2e6fa24f411a22da22 by Àlex Fiestas.
Committed on 15/04/2014 at 13:25.
Pushed by afiestas into branch 'master'.

[kcm/keyboard] Call the OSD service asynchronously when layout is changed.

M  +9    -0    kcms/keyboard/keyboard_daemon.cpp

http://commits.kde.org/plasma-desktop/c610fe07e4f4d4aec1d96f2e6fa24f411a22da22

diff --git a/kcms/keyboard/keyboard_daemon.cpp b/kcms/keyboard/keyboard_daemon.cpp
index 62243e9..25673b0 100644
--- a/kcms/keyboard/keyboard_daemon.cpp
+++ b/kcms/keyboard/keyboard_daemon.cpp
@@ -199,6 +199,15 @@ void KeyboardDaemon::layoutChanged()
 
 	if( newLayout != currentLayout ) {
 		currentLayout = newLayout;
+        QDBusMessage msg = QDBusMessage::createMethodCall(
+        QLatin1Literal("org.kde.plasma_shell"),
+        QLatin1Literal("/org/kde/osdService"),
+        QLatin1Literal("org.kde.osdService"),
+        QLatin1Literal("kbdLayoutChanged"));
+
+        qDebug() << newLayout.getDisplayName();
+        msg.setArguments(QList<QVariant>() << newLayout.getDisplayName());
+        QDBusConnection::sessionBus().asyncCall(msg);
 		emit currentLayoutChanged(newLayout.toString());
 	}
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic