diff -u pilrc-2.0a/src/makefile pilrc-2.0x/src/makefile --- pilrc-2.0a/src/makefile Wed Nov 19 21:02:12 1997 +++ pilrc-2.0x/src/makefile Tue Sep 1 11:18:13 1998 @@ -3,8 +3,8 @@ CC = gcc CFLAGS = -O2 -g -DUNIX -XINCLUDE = -I/local/include -XLIBS = -L/local/lib -lgtk -lgdk -lglib -lX11 -lm +XINCLUDE = `gtk-config --cflags` +XLIBS = `gtk-config --libs` -lX11 -lm all: pilrc pilrcui diff -u pilrc-2.0a/src/xwin.c pilrc-2.0x/src/xwin.c --- pilrc-2.0a/src/xwin.c Thu Nov 13 21:10:42 1997 +++ pilrc-2.0x/src/xwin.c Tue Sep 1 11:29:52 1998 @@ -198,7 +198,7 @@ org.y + y + font->ascent, s); - gdk_font_free (font); + gdk_font_unref (font); } void pilrcui_drawform (GtkDrawingArea *w) @@ -831,7 +831,7 @@ style = gtk_style_new (); - gdk_font_free (style->font); + gdk_font_unref (style->font); style->font = gdk_font_load ("-Adobe-Helvetica-Medium-R-Normal--*-140-*-*-*-*-*-*"); gtk_widget_push_style (style); --- pilrc-2.0a/doc/readme.x Thu Nov 13 21:14:44 1997 +++ pilrc-2.0x/doc/readme.x Tue Sep 1 11:54:21 1998 @@ -1,11 +1,12 @@ Author: Brandon Long (blong@fiction.net) - Version: 0.12 - Date: 11-13-1997 + Version: 2.0a/0.13 + Date: 09-01-1998 pilrcui/X ============ pilrcui/X is a port of the Win32 pilrcui by Wes Cherry to the X Window -System using the GIMP GTK+ widget set (http://www.gimp.org/gtk/). +System using the GIMP GTK+ widget set (http://www.gtk.org/). This +version should compile cleanly against GTK+ 1.0.5 This port was done by Brandon Long (blong@ficiton.net). The port ain't pretty, but it is functional. Some of those rough edges are because @@ -14,9 +15,11 @@ Compiling ------------ -To compile, you need to have the GTK+ libraries on your system. Edit -the makefile, the lines XINCLUDE and XLIBS to point to the location of -the gtk include and libraries. Then just type make. +To compile, you need to have the GTK+ libraries on your system. The +Makefile uses gtk-config to find the GTK+ includes and libraries, but it +must be in your path. Otherwise, edit the makefile, the lines XINCLUDE +and XLIBS to point to the location of the gtk include and libraries. +Then just type make. Known bugs in 0.1 @@ -53,3 +56,10 @@ - Moved pilrc main() into main.c, now compiles both pilrc and pilrcui really easily. - Upgraded to 1.8 of pilrc code + +Changes in 0.13 +--------------- + - Changed gdk_font_free() to gdk_font_unref() for gdk+ 1.0.5 + - Changed references in Makefile for GTK+ includes and libraries to + use the new gtk-config program + - Corresponds to 2.0a of pilrc code