Re: is gtk_timeout_remove gone?
- From: James Henstridge <james daa com au>
- To: Dan Mills <thunder ximian com>
- Cc: gtk-devel-list gnome org
- Subject: Re: is gtk_timeout_remove gone?
- Date: Fri, 07 Feb 2003 13:54:54 +0800
Dan Mills wrote:
Hi,
It seems a recent gtk+ change is breaking gnome-games:
tetris.cpp: In function `int Tetris::gameEnd (GtkWidget *, void *)':
tetris.cpp:710: `gtk_timeout_remove' undeclared (first use this
function)
Is it something that should be fixed in gnome-games?
Questions like this should probably be asked on gtk-app-devel-list
rather than gtk-devel-list. This list is for discussion relating to
development of gtk, rather than with gtk.
You are probably compiling with GTK_DISABLE_DEPRECATED defined. The
function still exists, but is deprecated (in favour of g_source_remove()).
The reason you are seeing an error rather than a warning is because you
are using a C++ compiler. It is an error to use a function which hasn't
been declared with a prototype in C++, because it needs to know the
prototype in order to perform name mangling.
Changing the call to g_source_remove() is the correct change to make.
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]