[Xfce4-commits] <xfce4-notifyd:master> emit closed signal on correct object

Brian J. Tarricone noreply at xfce.org
Mon Sep 26 09:10:01 CEST 2011


Updating branch refs/heads/master
         to ad77e8aa48201c1c10226b54f7ab006989f2f4d5 (commit)
       from 117884d7760657156dfd06fc9624c82e5f789260 (commit)

commit ad77e8aa48201c1c10226b54f7ab006989f2f4d5
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Mon Sep 26 00:07:31 2011 -0700

    emit closed signal on correct object
    
    'widget' is actually the GtkButton when an action is clicked.  this is
    why notifications were never dismissed when an action got clicked.
    long-standing bug finally fixed!

 xfce4-notifyd/xfce-notify-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xfce4-notifyd/xfce-notify-window.c b/xfce4-notifyd/xfce-notify-window.c
index 41316b8..8364d7a 100644
--- a/xfce4-notifyd/xfce-notify-window.c
+++ b/xfce4-notifyd/xfce-notify-window.c
@@ -718,7 +718,7 @@ xfce_notify_window_button_clicked(GtkWidget *widget,
 
     g_signal_emit(G_OBJECT(window), signals[SIG_ACTION_INVOKED], 0,
                   action_id);
-    g_signal_emit(G_OBJECT(widget), signals[SIG_CLOSED], 0,
+    g_signal_emit(G_OBJECT(window), signals[SIG_CLOSED], 0,
                   XFCE_NOTIFY_CLOSE_REASON_DISMISSED);
 }
 


More information about the Xfce4-commits mailing list