Re: gtk 1.2 to 2.0 upgrade woes


Thank you for this! The *DISABLE_DEPRECATED flags look really useful and I'll definitely be using them, but the piece of your email that really helped me solve my problem was this -

>     $(CC) vboxexample.c -o vboxexample $(CFLAGS) `pkg-config gtk+-2.0
> --cflags --libs`

I hadn't been using pkg-config to set up the compile and link options and this worked first time.


Michèle Garoche wrote:

Le mardi, 22 juil 2003, à 17:45 Europe/Paris, Rob Clack a écrit :

  gtk_signal_connect(GTK_OBJECT(window), "destroy",
                     GTK_SIGNAL_FUNC(Quit), NULL);

Are you sure about gtk_signal_connect? I use g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(...), NULL);

I must say that I compile this (on Mac OS 10.2.6 but it does not matter here) with:

CC = cc

CFLAGS = -Wall \

vboxexample: vboxexample.c
$(CC) vboxexample.c -o vboxexample $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs`

    rm -f *.o vboxexample

to avoid using deprecated calls.

But I'm completely new to gtk, so I may be completely wrong.

Anyway with your code and my compiling I get a warning with gtk_signal_connect undefined, once corrected it works fine except that it only delete the window, not the application (from your code I guess this is what you want), so say it works fine.

Second, are you sure you can compile an application on your disk with libraries on a networked disk (I mean same architecture? Are you sure there is not an horrid mixture between your libraries and the networked ones?) If I try this with my two macs on a local network, that's a no no, but here my configuration may matter (of course I can run the executable remotely, but compiling...).


gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

 In a twin-engined plane, when one engine fails, you always
 have enough power left to get to the crash site.
 Rob Clack                        Acedb Development,  Informatics Group
 email: rnc sanger ac uk                Wellcome Trust Sanger Institute
 Tel: +44 1223 494780                   Wellcome Trust Genome Campus
 Fax: +44 1223 494919                   Hinxton  Cambridge    CB10 1SA

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