I found it:
gnome_app_set_contents(GNOME_APP(window), frame);
Thanks.
>From: "Dinesh Nadarajah" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: Re: gtk-bin.c error when using frames
>Date: Wed, 10 Oct 2001 10:04:11 -0500
>
>I tried a couple of things. I forgot to mention that this is a Gnome app.
>When I did this:
>
> //topLevelWindow = gnome_app_new("gnomewin", "Gnome Window");
> topLevelWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
>
>(commented out the gnome part and created a simple GTK window it worked).
>But the Gnome tool bar etc. did not work (since it was expecting a GnomeApp
>Object.
>
>Is there a way to resolve this for Gnome?
>
>-D
>
>
>>From: Skip Montanaro <[EMAIL PROTECTED]>
>>Reply-To: [EMAIL PROTECTED] (Skip Montanaro)
>>To: "Dinesh Nadarajah" <[EMAIL PROTECTED]>
>>CC: [EMAIL PROTECTED]
>>Subject: Re: gtk-bin.c error when using frames
>>Date: Wed, 10 Oct 2001 09:25:24 -0500
>>
>>
>> Dinesh> // create source frame
>> Dinesh> frame = makeFrame();
>> Dinesh> gtk_container_add(GTK_CONTAINER(topLevelWindow), frame);
>>
>>Try
>>
>> gtk_container_add(GTK_CONTAINER(frame), topLevelWindow);
>>
>>instead... Gtk is an object-oriented programming system implemented in C.
>>Methods are always functions that prefix the conceptual method (e.g.
>>"add")
>>with the class for which the method is defined ("gtk_container" in this
>>case). The first argument must always be an instance of the class and
>>corresponds to "this" in C++ or self in languages like Python or
>>Smalltalk.
>>You can think of the above call as
>>
>> frame.add(topLevelWindow)
>>
>>(In fact, if you where using PyGtk, that's exactly how you'd write it.)
>>
>>--
>>Skip Montanaro ([EMAIL PROTECTED])
>>http://www.mojam.com/
>>http://www.musi-cal.com/
>>
>>_______________________________________________
>>gtk-list mailing list
>>[EMAIL PROTECTED]
>>http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
>_______________________________________________
>gtk-list mailing list
>[EMAIL PROTECTED]
>http://mail.gnome.org/mailman/listinfo/gtk-list
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list