summarylogtreecommitdiffstats
path: root/0001-Add-support-for-Activate-method-for-improved-Plasma-.patch
blob: 73b44c4fdabb2ecacd2279a59ba609e3ae285481 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From c38d64aa3c12bea271d331b6c52a1130ca758a69 Mon Sep 17 00:00:00 2001
From: Sebastian Krzyszkowiak <dos@dosowisko.net>
Date: Sun, 12 Jul 2015 16:25:07 +0200
Subject: [PATCH] Add support for Activate method for improved Plasma 5 user
 experience

---
 src/app-indicator.c             | 3 ++-
 src/gen-notification-item.xml.c | 4 ++++
 src/notification-item.xml       | 4 ++++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/app-indicator.c b/src/app-indicator.c
index 2e98b48..14be69f 100644
--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -1082,7 +1082,8 @@ bus_method_call (GDBusConnection * connection, const gchar * sender,
 		delta = ABS(delta);
 		g_signal_emit(app, signals[SCROLL_EVENT], 0, delta, direction);
 
-	} else if (g_strcmp0(method, "SecondaryActivate") == 0 ||
+	} else if (g_strcmp0(method, "Activate") == 0 ||
+	           g_strcmp0(method, "SecondaryActivate") == 0 ||
 	           g_strcmp0(method, "XAyatanaSecondaryActivate") == 0) {
 		GtkWidget *menuitem = priv->sec_activate_target;
 		
diff --git a/src/gen-notification-item.xml.c b/src/gen-notification-item.xml.c
index 0bc6ab2..18a288b 100644
--- a/src/gen-notification-item.xml.c
+++ b/src/gen-notification-item.xml.c
@@ -25,6 +25,10 @@ const char * _notification_item =
 "			<arg type=\"i\" name=\"delta\" direction=\"in\" />\n"
 "			<arg type=\"s\" name=\"orientation\" direction=\"in\" />\n"
 "		</method>\n"
+"		<method name=\"Activate\">\n"
+"			<arg type=\"i\" name=\"x\" direction=\"in\" />\n"
+"			<arg type=\"i\" name=\"y\" direction=\"in\" />\n"
+"		</method>\n"
 "		<method name=\"SecondaryActivate\">\n"
 "			<arg type=\"i\" name=\"x\" direction=\"in\" />\n"
 "			<arg type=\"i\" name=\"y\" direction=\"in\" />\n"
diff --git a/src/notification-item.xml b/src/notification-item.xml
index c93afd7..72d36eb 100644
--- a/src/notification-item.xml
+++ b/src/notification-item.xml
@@ -24,6 +24,10 @@
 			<arg type="i" name="delta" direction="in" />
 			<arg type="s" name="orientation" direction="in" />
 		</method>
+		<method name="Activate">
+			<arg type="i" name="x" direction="in" />
+			<arg type="i" name="y" direction="in" />
+		</method>
 		<method name="SecondaryActivate">
 			<arg type="i" name="x" direction="in" />
 			<arg type="i" name="y" direction="in" />
-- 
2.4.5