[gnome-control-center/randr-set-as-default] Compilation fixes



commit feeb3d57311df2c09d46b1f2d1cc4c2796c51652
Author: Federico Mena Quintero <federico novell com>
Date:   Thu Mar 11 12:43:42 2010 -0600

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

 capplets/display/Makefile.am                       |    8 +++++++-
 .../gnome-display-properties-install-systemwide.c  |    6 +++++-
 2 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/capplets/display/Makefile.am b/capplets/display/Makefile.am
index 14bba49..de56f30 100644
--- a/capplets/display/Makefile.am
+++ b/capplets/display/Makefile.am
@@ -4,7 +4,7 @@ cappletname = display
 uidir = $(pkgdatadir)/ui
 dist_ui_DATA = display-capplet.ui
 
-bin_PROGRAMS = gnome-display-properties
+bin_PROGRAMS = gnome-display-properties gnome-display-properties-install-systemwide
 
 gnome_display_properties_SOURCES =	\
 	xrandr-capplet.c		\
@@ -18,6 +18,12 @@ gnome_display_properties_LDADD = \
 	$(top_builddir)/capplets/common/libcommon.la \
 	$(DISPLAY_CAPPLET_LIBS)
 
+gnome_display_properties_install_systemwide_SOURCES =	\
+	gnome-display-properties-install-systemwide.c
+
+gnome_display_properties_install_systemwide_LDADD =	\
+	$(GLIB_LIBS)
+
 @INTLTOOL_DESKTOP_RULE@
 
 icons16dir = $(datadir)/icons/hicolor/16x16/apps
diff --git a/capplets/display/gnome-display-properties-install-systemwide.c b/capplets/display/gnome-display-properties-install-systemwide.c
index ee3d6d2..7092c05 100644
--- a/capplets/display/gnome-display-properties-install-systemwide.c
+++ b/capplets/display/gnome-display-properties-install-systemwide.c
@@ -25,8 +25,11 @@
 
 #include "config.h"
 
+#include <errno.h>
 #include <locale.h>
+#include <stdio.h>
 #include <stdlib.h>
+#include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
@@ -124,6 +127,7 @@ copy_file (int source_fd, int dest_fd)
 int
 main (int argc, char **argv)
 {
+	uid_t uid, euid;
 	const char *source_filename;
 	const char *dest_name;
 	const char *pkexec_uid_str;
@@ -135,7 +139,7 @@ main (int argc, char **argv)
 	char template[100];
 
 	setlocale (LC_ALL, "");
-	bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+	bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
 



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