fun with glade



in glade, if you try to create a shlib bonobo component which uses
libglade, glade seg faults because both glade (the app) and libglade
define the function glade_init().

this simple patch fixes it for me.

ok to commit?  (are there other global structures to either libglade or
glade which have the same name?  i didn't look)

jacob
-- 
In the afterlife, a cute .signature will only get you so far.

Index: glade.c
===================================================================
RCS file: /cvs/gnome/glade/glade/glade.c,v
retrieving revision 1.9
diff -u -r1.9 glade.c
--- glade.c	2000/09/17 22:49:16	1.9
+++ glade.c	2001/08/02 21:18:18
@@ -40,7 +40,7 @@
 GtkWidget *glade_clipboard;
 
 void
-glade_init (void)
+glade_app_init (void)
 {
   /* Initialize debugging flags from the GLADE_DEBUG environment variable. */
   glade_debug_init ();
Index: glade.h
===================================================================
RCS file: /cvs/gnome/glade/glade/glade.h,v
retrieving revision 1.11
diff -u -r1.11 glade.h
--- glade.h	2000/09/17 22:49:16	1.11
+++ glade.h	2001/08/02 21:18:18
@@ -84,7 +84,7 @@
 };
 
 
-void	    glade_init				(void);
+void	    glade_app_init				(void);
 
 /*
 GladeProject* glade_project_new (void);
Index: main.c
===================================================================
RCS file: /cvs/gnome/glade/glade/main.c,v
retrieving revision 1.11
diff -u -r1.11 main.c
--- main.c	2000/09/17 22:49:16	1.11
+++ main.c	2001/08/02 21:18:18
@@ -132,7 +132,7 @@
   textdomain (PACKAGE);
 #endif
 
-  glade_init ();
+  glade_app_init ();
 
   parse_command_line (argc, argv);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]