[Xfce4-commits] [xfce/xfconf] 08/10: Use g_bus_get instead of the private libxfconf API

noreply at xfce.org noreply at xfce.org
Sun Oct 21 12:05:15 CEST 2018


This is an automated email from the git hooks/post-receive script.

a   l   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfconf.

commit d244162f45ddd5b78a4b602b393f7b8339895697
Author: Ali Abdallah <ali at xfce.org>
Date:   Sat Jul 14 21:23:33 2018 +0200

    Use g_bus_get instead of the private libxfconf API
    
    _xfconf_get_gdbus_connection  is private to xfconf, so use
    g_bus_get_sync to get the connection dbus object.
---
 gsettings-backend/xfconf-gsettings-backend.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gsettings-backend/xfconf-gsettings-backend.c b/gsettings-backend/xfconf-gsettings-backend.c
index 15746ea..53cae50 100644
--- a/gsettings-backend/xfconf-gsettings-backend.c
+++ b/gsettings-backend/xfconf-gsettings-backend.c
@@ -268,7 +268,16 @@ static void
 xfconf_gsettings_backend_sync (GSettingsBackend *backend)
 {
   GDBusConnection *bus;
-  bus = _xfconf_get_gdbus_connection ();
+  GError *error = NULL;
+
+  bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
+
+  if (error != NULL) {
+    g_critical ("Failed to get bus connection '%s'", error->message);
+    g_error_free (error);
+    return;
+  }
+
   g_dbus_connection_flush_sync (bus, NULL, NULL);
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list