[Xfce4-commits] <xfconf:master> emit proper arguments on XfconfCache::property-changed signal (bug 5734)

Brian J. Tarricone brian at tarricone.org
Sat Sep 5 05:40:02 CEST 2009


Updating branch refs/heads/master
         to eb2e307ffda8df9c8588bb9db77c3a411b8ce0fe (commit)
       from acb9b2085364aa860aed4df663cb95b8931d5a18 (commit)

commit eb2e307ffda8df9c8588bb9db77c3a411b8ce0fe
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Fri Sep 4 20:35:32 2009 -0700

    emit proper arguments on XfconfCache::property-changed signal (bug 5734)
    
    that's what happens when you copy and paste and don't change the
    arguments.  also remove the G_SIGNAL_DETAILED flag for property-changed
    since we don't really need it for XfconfCache (just for XfconfChannel).

 xfconf/xfconf-cache.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/xfconf/xfconf-cache.c b/xfconf/xfconf-cache.c
index 049436c..67f9edb 100644
--- a/xfconf/xfconf-cache.c
+++ b/xfconf/xfconf-cache.c
@@ -235,8 +235,7 @@ xfconf_cache_class_init(XfconfCacheClass *klass)
 
     signals[SIG_PROPERTY_CHANGED] = g_signal_new("property-changed",
                                                  XFCONF_TYPE_CACHE,
-                                                 G_SIGNAL_RUN_LAST
-                                                 | G_SIGNAL_DETAILED,
+                                                 G_SIGNAL_RUN_LAST,
                                                  G_STRUCT_OFFSET(XfconfCacheClass,
                                                                  property_changed),
                                                  NULL,
@@ -418,8 +417,8 @@ xfconf_cache_property_changed(DBusGProxy *proxy,
     }
 
     if(changed) {
-        g_signal_emit(G_OBJECT(cache), signals[SIG_PROPERTY_CHANGED],
-                      g_quark_from_string(property), property, value);
+        g_signal_emit(G_OBJECT(cache), signals[SIG_PROPERTY_CHANGED], 0,
+                      cache->channel_name, property, value);
     }
 }
 



More information about the Xfce4-commits mailing list