From 2afb71525c27a21dfad990f2adc129a53d332d7d Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 7 Apr 2013 20:01:27 -0700 Subject: [PATCH] gtk: Replace leftover references to gtk+-2.0 with gtk+-3.0. --- doc/ffi/ffi.texinfo | 12 ++++++------ src/configure.ac | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/ffi/ffi.texinfo b/doc/ffi/ffi.texinfo index da6c87ece..d98a47528 100644 --- a/doc/ffi/ffi.texinfo +++ b/doc/ffi/ffi.texinfo @@ -152,11 +152,11 @@ data types is given in a case sensitive @file{.cdecl} file. The C declarations look like this: @smallexample -(extern (* GtkWidget) @r{; gtk+-2.4.0/gtk/gtkwindow.h} +(extern (* GtkWidget) gtk_window_new (type GtkWindowType)) -(typedef GtkWindowType @r{; gtk+-2.4.0/gtk/gtkenums.h} +(typedef GtkWindowType (enum (GTK_WINDOW_TOPLEVEL) (GTK_WINDOW_POPUP))) @@ -657,10 +657,10 @@ install-example: build-example build-example: prhello-shim.so prhello-types.bin prhello-const.bin prhello-shim.so: prhello-shim.o - $(CC) -shared -fPIC -o $@ $^ `pkg-config --libs gtk+-2.0` + $(CC) -shared -fPIC -o $@ $^ `pkg-config --libs gtk+-3.0` prhello-shim.o: prhello-shim.c - $(CC) -I../lib -Wall -fPIC `pkg-config --cflags gtk+-2.0` -o $@ -c $< + $(CC) -I../lib -Wall -fPIC `pkg-config --cflags gtk+-3.0` -o $@ -c $< prhello-shim.c prhello-const.c prhello-types.bin: prhello.cdecl (echo "(load-option 'FFI)"; \ @@ -675,10 +675,10 @@ prhello-const.scm: prhello-const prhello-const: prhello-const.o @rm -f $@ - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ `pkg-config --libs gtk+-2.0` + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ `pkg-config --libs gtk+-3.0` prhello-const.o: prhello-const.c - $(CC) `pkg-config --cflags gtk+-2.0` $(CFLAGS) -o $@ -c $< + $(CC) `pkg-config --cflags gtk+-3.0` $(CFLAGS) -o $@ -c $< @end verbatim @end example diff --git a/src/configure.ac b/src/configure.ac index a13e84f11..57ade1fc6 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -167,11 +167,11 @@ if test "${with_gtk}" = "yes"; then elif test "${with_gtk}" = "no"; then AC_MSG_RESULT([by request... no]) elif test "${with_gtk}" = "auto"; then - if pkg-config --exists gtk+-2.0 2>/dev/null; then + if pkg-config --exists gtk+-3.0 2>/dev/null; then AC_MSG_RESULT([yes]) with_gtk=yes else - AC_MSG_RESULT([no Gtk 2.0... no]) + AC_MSG_RESULT([no Gtk 3.0... no]) with_gtk=no fi fi -- 2.25.1