=?iso-8859-1?Q?Re=A0=3A_=5BAnjuta-devel?= =?iso-8859-1?Q?=5D?= Re: [Anjuta-list] Problems with anjuta 1.2.0 and gtk+



Hi,

It is fine.
I've just remarked, as I said, that the behaviour was different with the one of the previous version of Anjuta.

--
Regards
			- Jean-Luc

Le 17.12.2003 17:51, Curtis Magyar a écrit :
|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
|
|
|
|
|-------------------------------------------------------
|This SF.net email is sponsored by: IBM Linux Tutorials.
|Become an expert in LINUX or just sharpen your skills.  Sign up for
|IBM's
|Free Linux Tutorials.  Learn everything from the bash shell to sys
|admin.
|Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
|_______________________________________________
|Anjuta-list mailing list
|Anjuta-list lists sourceforge net
|https://lists.sourceforge.net/lists/listinfo/anjuta-list
|

Attachment: pgpYnaiKKYiuO.pgp
Description: PGP signature



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