gnome-settings-daemon r624 - in trunk: . plugins/xrandr



Author: federico
Date: Thu Dec  4 00:32:14 2008
New Revision: 624
URL: http://svn.gnome.org/viewvc/gnome-settings-daemon?rev=624&view=rev

Log:
Define a DBus interface to tell the XRANDR plug-in to apply the current configuration
2008-12-02  Federico Mena Quintero  <federico novell com>

	* plugins/xrandr/gsd-xrandr-manager.xml: Trivial DBus interface to
	tell the XRANDR manager to apply the stored configuration.

	* plugins/xrandr/Makefile.am: Add the machinery to generate DBus
	glue.

Signed-off-by: Federico Mena Quintero <federico novell com>

Added:
   trunk/plugins/xrandr/gsd-xrandr-manager.xml
Modified:
   trunk/ChangeLog
   trunk/plugins/xrandr/Makefile.am

Modified: trunk/plugins/xrandr/Makefile.am
==============================================================================
--- trunk/plugins/xrandr/Makefile.am	(original)
+++ trunk/plugins/xrandr/Makefile.am	Thu Dec  4 00:32:14 2008
@@ -1,6 +1,9 @@
 icondir = $(datadir)/icons/hicolor
 context = apps
 
+BUILT_SOURCES =				\
+	gsd-xrandr-manager-glue.h
+
 ICON_FILES = 			\
 	gsd-xrandr-16.png	\
 	gsd-xrandr-22.png	\
@@ -30,7 +33,13 @@
 plugin_LTLIBRARIES = \
 	libxrandr.la
 
+gsd-xrandr-manager-glue.h: gsd-xrandr-manager.xml Makefile
+	dbus-binding-tool --prefix=gsd_xrandr_manager --mode=glib-server $< > xgen-$(@F) \
+	&& ( cmp -s xgen-$(@F) $@ || cp xgen-$(@F) $@ ) \
+	&& rm -f xgen-$(@F)
+
 libxrandr_la_SOURCES = 		\
+	$(BUILT_SOURCES)	\
 	gsd-xrandr-plugin.h	\
 	gsd-xrandr-plugin.c	\
 	gsd-xrandr-manager.h	\
@@ -60,7 +69,7 @@
 plugin_DATA = $(plugin_in_files:.gnome-settings-plugin.in=.gnome-settings-plugin)
 
 EXTRA_DIST = $(plugin_in_files) $(ICON_FILES)
-CLEANFILES = $(plugin_DATA)
+CLEANFILES = $(plugin_DATA) $(BUILT_SOURCES)
 DISTCLEANFILES = $(plugin_DATA)
 
 @GSD_INTLTOOL_PLUGIN_RULE@

Added: trunk/plugins/xrandr/gsd-xrandr-manager.xml
==============================================================================
--- (empty file)
+++ trunk/plugins/xrandr/gsd-xrandr-manager.xml	Thu Dec  4 00:32:14 2008
@@ -0,0 +1,8 @@
+<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd";>
+<node>
+  <interface name="org.gnome.SettingsDaemon.XRANDR">
+    <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="gsd_xrandr_manager"/>
+    <method name="ApplyConfiguration">
+    </method>
+  </interface>
+</node>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]