Re: [Anjuta-devel] Re: [Anjuta-list] Problems with anjuta 1.2.0 and gtk+
- From: Curtis Magyar <cumagyar mts net>
- To: anjuta-list lists sourceforge net, anjuta-devel lists sourceforge net
- Subject: Re: [Anjuta-devel] Re: [Anjuta-list] Problems with anjuta 1.2.0 and gtk+
- Date: Wed Dec 17 08:54:04 2003
On Fri, 2003-12-12 at 09:42, Karl-Heinz Brünen wrote:
> Hi,
>
> Am Fre, den 12.12.2003 schrieb Jean-Luc Coulon (f5ibh) um 16:26:
> > Hello,
> >
> > I have problems with a small gtk program:
> >
> > int main (int argc, char *argv[])
> > {
> > GtkWidget *window;
> > ..
> > ..
> > window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
> > gtk_window_set_title (window, RAW_CANON_TITLE);
> > ...
> >
> > It complains (warning message) :
> > warning: passing arg1 of 'gtk_window_set_title' from incompatible
> > pointer type.
> > (the same with other functions like gtk_signal_connect ...)
> >
> > With anjuta 1.1.97, I had not this problem.
> >
> > More, sometimes, when linking the program, anjuta enters a endless
> > loop. It eats more of the cpu. Clicking the 'stop' button or F12 to
> > strop the build process has no effect. But the application is still
> > living, I can do some editiong or close the window with file -> quit
>
> There are several bugs according to this problem.
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=846386&group_id=14222&atid=114222
> http://sourceforge.net/tracker/index.php?func=detail&aid=845782&group_id=14222&atid=114222
>
If you use
gtk_window_set_title (GTK_WINDOW(window), RAW_CANON_TITLE);
instead of
gtk_window_set_title (window, RAW_CANON_TITLE);
There is no warnings. AFAIK, that is why the GTK_WINDOW() macro
exists. Isn't that expected behaviour, and part of the GTK+ type
safety? The prototype is:
void gtk_window_set_title (GtkWindow *window, const gchar *title);
So the function is expecting a GtkWindow pointer, not a GtkWidget
pointer?
Call me crazy, but I doubt this has anything to do with Anjuta at all.
Try compiling manually, as in:
$ gcc `pkg-config --cflags gtk+-2.0` testgtk.c -c
testgtk.c: In function `main':
testgtk.c:10: warning: passing arg 1 of `gtk_window_set_title' from
incompatible pointer type
--
Curtis Magyar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]