From: John Darrington Date: Sun, 17 Oct 2010 19:04:28 +0000 (+0200) Subject: Merge commit 'origin/master' into sso X-Git-Tag: v0.7.9~159^2~1 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a258e53c63a08b0ec48aea8f03808eb651729424;hp=8a920632b433443aa37e16349589f0c7d7d3cdaf;p=pspp-builds.git Merge commit 'origin/master' into sso Conflicts: src/ui/gui/psppire-syntax-window.c --- diff --git a/INSTALL b/INSTALL index 6654e90b..23bbf8a4 100644 --- a/INSTALL +++ b/INSTALL @@ -55,6 +55,10 @@ use the GUI, you must run `configure' with --without-gui. * GTK+ (http://www.gtk.org/), version 2.12.0 or later. + * GtkSourceView (http://projects.gnome.org/gtksourceview/) + version 2.2 or later. + + To cross-compile PSPP, you will likely need to set the PKG_CONFIG_LIBDIR environment variable to point to an appropriate pkg-config for the cross-compilation environment. diff --git a/configure.ac b/configure.ac index b06392a5..abf7afad 100644 --- a/configure.ac +++ b/configure.ac @@ -76,6 +76,9 @@ if test "$with_cairo" != no && test "$with_gui" != "no"; then PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.16], [], [PSPP_REQUIRED_PREREQ([gtk+ 2.0 version 2.16 or later (or use --without-gui)])]) + PKG_CHECK_MODULES([GTKSOURCEVIEW], [gtksourceview-2.0 >= 2.2], [], + [PSPP_REQUIRED_PREREQ([gtksourceview 2.0 version 2.2 or later (or use --without-gui)])]) + AC_ARG_VAR([GLIB_GENMARSHAL]) AC_CHECK_PROGS([GLIB_GENMARSHAL], [glib-genmarshal]) if test "x$GLIB_GENMARSHAL" = x; then diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 989677f8..fd78196d 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -42,7 +42,7 @@ EXTRA_DIST += \ if HAVE_GUI bin_PROGRAMS += src/ui/gui/psppire -src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1 +src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) $(GTKSOURCEVIEW_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1 src_ui_gui_psppire_LDFLAGS = \ @@ -64,6 +64,7 @@ src_ui_gui_psppire_LDADD = \ src/libpspp.la \ src/libpspp-core.la \ $(GTK_LIBS) \ + $(GTKSOURCEVIEW_LIBS) \ $(CAIRO_LIBS) \ $(LIBINTL) @@ -74,6 +75,9 @@ themedir = $(DESTDIR)$(datadir)/icons/hicolor context = apps +install-lang: + $(INSTALL) $(top_srcdir)/src/ui/gui/pspp.lang $(pkgdatadir) + install-icons: for size in 16x16 ; do \ $(MKDIR_P) $(themedir)/$$size/$(context) ; \ @@ -81,7 +85,7 @@ install-icons: done gtk-update-icon-cache --ignore-theme-index $(themedir) -INSTALL_DATA_HOOKS += install-icons +INSTALL_DATA_HOOKS += install-icons install-lang uninstall-icons: for size in 16x16 ; do \ @@ -93,6 +97,7 @@ UNINSTALL_DATA_HOOKS += uninstall-icons dist_src_ui_gui_psppire_DATA = \ $(UI_FILES) \ + $(top_srcdir)/src/ui/gui/pspp.lang \ $(top_srcdir)/src/ui/gui/pspplogo.png \ $(top_srcdir)/src/ui/gui/icons/value-labels.png \ $(top_srcdir)/src/ui/gui/icons/goto-variable.png\ diff --git a/src/ui/gui/pspp.lang b/src/ui/gui/pspp.lang new file mode 100644 index 00000000..199586eb --- /dev/null +++ b/src/ui/gui/pspp.lang @@ -0,0 +1,90 @@ + + + + + + + +