[Xfce4-commits] [xfce/xfconf] 02/31: Generate the gdbus binding code and test the binding on xfconf_client_call_is_property_locked_sync.
noreply at xfce.org
noreply at xfce.org
Thu Jun 1 13:32:55 CEST 2017
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 0c1d295e61220d9f0a3d17394aa2f6762fb2362b
Author: Ali Abdallah <aliovx at gmail.com>
Date: Thu Jan 28 13:47:43 2016 +0100
Generate the gdbus binding code and test the binding on
xfconf_client_call_is_property_locked_sync.
---
common/xfconf-dbus.xml | 2 ++
xfconf/Makefile.am | 13 ++++++++++++-
xfconf/xfconf-channel.c | 9 +++++----
3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/common/xfconf-dbus.xml b/common/xfconf-dbus.xml
index 7034767..4c91465 100644
--- a/common/xfconf-dbus.xml
+++ b/common/xfconf-dbus.xml
@@ -6,6 +6,8 @@
value="xfconf"/>
<annotation name="org.freedesktop.DBus.GLib.ClientCSymbol"
value="xfconf_client"/>
+
+ <annotation name="org.gtk.GDBus.C.Name" value="Client" />
<!--
void org.xfce.Xfconf.SetProperty(String channel,
diff --git a/xfconf/Makefile.am b/xfconf/Makefile.am
index 42bd8eb..9edb51e 100644
--- a/xfconf/Makefile.am
+++ b/xfconf/Makefile.am
@@ -22,6 +22,7 @@ libxfconf_0_la_SOURCES = \
xfconf-cache.h \
xfconf-channel.c \
xfconf-dbus-bindings.h \
+ xfconf-gdbus-bindings.c \
xfconf-private.h \
xfconf.c \
$(top_srcdir)/common/xfconf-types.c
@@ -59,7 +60,17 @@ pkgconfig_DATA = libxfconf-0.pc
if MAINTAINER_MODE
BUILT_SOURCES = \
- xfconf-dbus-bindings.h
+ xfconf-dbus-bindings.h \
+ xfconf-gdbus-bindings.c \
+ xfconf-gdbus-bindings.h
+
+xfconf-gdbus-bindings.h:
+xfconf-gdbus-bindings.c: $(top_srcdir)/common/xfconf-dbus.xml Makefile
+ $(AM_V_GEN) $(GDBUS_CODEGEN) \
+ --interface-prefix org.xfce.Xfconf \
+ --c-namespace Xfconf \
+ --generate-c-code xfconf-gdbus-bindings \
+ $<
xfconf-dbus-bindings.h: $(top_srcdir)/common/xfconf-dbus.xml Makefile
$(AM_V_GEN) dbus-binding-tool --mode=glib-client $< > $(@).tmp \
diff --git a/xfconf/xfconf-channel.c b/xfconf/xfconf-channel.c
index b44b1da..36850f1 100644
--- a/xfconf/xfconf-channel.c
+++ b/xfconf/xfconf-channel.c
@@ -29,6 +29,7 @@
#include "xfconf-channel.h"
#include "xfconf-cache.h"
#include "xfconf-dbus-bindings.h"
+#include "xfconf-gdbus-bindings.h"
#include "common/xfconf-gvaluefuncs.h"
#include "xfconf-private.h"
#include "common/xfconf-marshal.h"
@@ -663,13 +664,13 @@ gboolean
xfconf_channel_is_property_locked(XfconfChannel *channel,
const gchar *property)
{
- DBusGProxy *proxy = _xfconf_get_dbus_g_proxy();
+ GDBusProxy *proxy = _xfconf_get_gdbus_proxy();
gboolean locked = FALSE;
gchar *real_property = REAL_PROP(channel, property);
ERROR_DEFINE;
-
- if(!xfconf_client_is_property_locked(proxy, channel->channel_name,
- property, &locked, ERROR))
+
+ if (!xfconf_client_call_is_property_locked_sync (proxy, channel->channel_name,
+ property, &locked, NULL, ERROR))
{
ERROR_CHECK;
locked = FALSE;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list