Compilation fixes
Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
parent
da0112c818
commit
feeb3d5731
2 changed files with 12 additions and 2 deletions
|
@ -4,7 +4,7 @@ cappletname = display
|
||||||
uidir = $(pkgdatadir)/ui
|
uidir = $(pkgdatadir)/ui
|
||||||
dist_ui_DATA = display-capplet.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 = \
|
gnome_display_properties_SOURCES = \
|
||||||
xrandr-capplet.c \
|
xrandr-capplet.c \
|
||||||
|
@ -18,6 +18,12 @@ gnome_display_properties_LDADD = \
|
||||||
$(top_builddir)/capplets/common/libcommon.la \
|
$(top_builddir)/capplets/common/libcommon.la \
|
||||||
$(DISPLAY_CAPPLET_LIBS)
|
$(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@
|
@INTLTOOL_DESKTOP_RULE@
|
||||||
|
|
||||||
icons16dir = $(datadir)/icons/hicolor/16x16/apps
|
icons16dir = $(datadir)/icons/hicolor/16x16/apps
|
||||||
|
|
|
@ -25,8 +25,11 @@
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -124,6 +127,7 @@ copy_file (int source_fd, int dest_fd)
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
uid_t uid, euid;
|
||||||
const char *source_filename;
|
const char *source_filename;
|
||||||
const char *dest_name;
|
const char *dest_name;
|
||||||
const char *pkexec_uid_str;
|
const char *pkexec_uid_str;
|
||||||
|
@ -135,7 +139,7 @@ main (int argc, char **argv)
|
||||||
char template[100];
|
char template[100];
|
||||||
|
|
||||||
setlocale (LC_ALL, "");
|
setlocale (LC_ALL, "");
|
||||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
||||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue