[notification-daemon] nd-bubble: add event mask in one place
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [notification-daemon] nd-bubble: add event mask in one place
- Date: Wed, 29 Apr 2015 11:23:31 +0000 (UTC)
commit d7b1dd648eda2e5561b401b6fb863f73d9c2ec3b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Apr 29 14:15:50 2015 +0300
nd-bubble: add event mask in one place
No need to call gtk_widget_add_events in two different places.
src/nd-bubble.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/nd-bubble.c b/src/nd-bubble.c
index 7678654..186911c 100644
--- a/src/nd-bubble.c
+++ b/src/nd-bubble.c
@@ -443,7 +443,7 @@ nd_bubble_init (NdBubble *bubble)
bubble->priv = ND_BUBBLE_GET_PRIVATE (bubble);
- gtk_widget_add_events (GTK_WIDGET (bubble), GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
+ gtk_widget_add_events (GTK_WIDGET (bubble), GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
GDK_POINTER_MOTION_MASK);
atk_object_set_role (gtk_widget_get_accessible (GTK_WIDGET (bubble)), ATK_ROLE_ALERT);
screen = gtk_window_get_screen (GTK_WINDOW (bubble));
@@ -891,8 +891,6 @@ nd_bubble_new_for_notification (NdNotification *notification)
"type-hint", GDK_WINDOW_TYPE_HINT_NOTIFICATION,
NULL);
- gtk_widget_add_events (GTK_WIDGET (bubble), GDK_POINTER_MOTION_MASK);
-
bubble->priv->notification = g_object_ref (notification);
g_signal_connect (notification, "changed", G_CALLBACK (on_notification_changed), bubble);
update_bubble (bubble);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]