g_type_query in gtk-win32
- From: "John Emmas" <johne53 tiscali co uk>
- To: <gtk-app-devel-list gnome org>
- Subject: g_type_query in gtk-win32
- Date: Thu, 5 Feb 2009 12:51:05 -0000
I'm trying to port a program which previously used gtk-x11 so that it will
work with gtk-win32. For the past day or two I've had a very strange
problem with the program crashing unexpectedly. Finally I tracked it down
to a problem with the function call g_type_query()
Here's a very simple program that illustrates the problem:-
#include <libgnomecanvas/gnome-canvas.h>
int main (int argc, char *argv[])
{
GTypeQuery base_query = { 0, 0, 0, 0, };
g_type_query(gnome_canvas_get_type(), &base_query);
return 0
}
'base_query' is initialised to NULL. When I call 'g_type_query(...)'
(linked to gtk-x11) the various fields of 'base_query' get filled with
approriate data. However, if I build the same program when linked to
gtk-win32, the call to 'g_type_query()' simply fails to do anything,
leaving 'base_query' uninitiaised.
Please could someone try the above code and let me know if this is a general
problem - or whether there's something peculiar with my installation?
Many thanks,
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]