Full gnome support for pigtk
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=29
Reported by @grubba
From: Alan Knowles <alan_k@hklc.com>
To: pike@idonex.se
Date: Wed, 16 Aug 2000 21:32:53 +0800
Subject: build_pgtk.pike diff
attached is a 'cvs diff' output for build_pgtk.pike that should enable all gnome functions to work.
diff'ed against Pike/7.1
regards
alan
-- Technical Director Linux Center (HK) Ltd. www.hklc.com
Index: build_pgtk.pike
===================================================================
RCS file: /cvs/Pike/7.1/src/post_modules/GTK/build_pgtk.pike,v
retrieving revision 1.32
diff -r1.32 build_pgtk.pike
1288c1288,1296
< type_switch += "#ifdef GTK_TYPE_"+flop+"\n"
---
> if (search(upper_case(w), "GNOME") > -1) {
> // comes in as GNOME_XXX_XXX
> // should be GNOME_TYPE_XXX_XXX
> string flop = replace(upper_case(w),"GNOME_", "GNOME_TYPE_");
> type_switch += "#ifdef "+flop+"\n"
> " if(PGTK_CHECK_TYPE(widget, "+flop+")) "
> "return pgtk_"+w+"_program;\n#endif\n";
> } else {
> type_switch += "#ifdef GTK_TYPE_"+flop+"\n"
1290a1299
> }