fixes for gtk+ 1.1.9

-Yosh
This commit is contained in:
Manish Singh 1998-12-22 05:58:36 +00:00
parent 4ba1f0427c
commit aac6bce8ad
4 changed files with 23 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Mon Dec 21 21:56:58 PST 1998 Manish Singh <yosh@gimp.org>
* fixed up ex for latest glib/gtk+
1998-11-21 Lauri Alanko <la@iki.fi>
* Added signal demarshallers. Currently they are generated for

15
tools/gcg/ex/.cvsignore Normal file
View file

@ -0,0 +1,15 @@
Makefile
Makefile.in
.deps
ostream_s.c
ostream_t.h
ostream.h
ostream_p.h
ostream_i.h
file_ostream_s.c
file_ostream_t.h
file_ostream.h
file_ostream_p.h
file_ostream_i.h
foo
strtest

View file

@ -5,7 +5,7 @@ GEN_CODE = ostream_s.c file_ostream_s.c
noinst_LIBRARIES = libgcgexample.a
noinst_PROGRAMS = strtest
CFLAGS = -g -Wall -W -I..
CFLAGS = -g -Wall -W -I.. @GLIB_CFLAGS@
SUFFIXES = .gc .gh

View file

@ -11,7 +11,9 @@ void close_handler(Ostream* o, gpointer data){
}
int main(void){
Ostream* x = OSTREAM(file_ostream_open("foo"));
Ostream* x;
gtk_type_init();
x = OSTREAM(file_ostream_open("foo"));
ostream_connect_putstring(putstring_handler, "foo", x);
ostream_connect_close(close_handler, "foo", x);
ostream_putstring(x, "Whammo!\n");