Re: help! gtk problem
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Stéphane Konstantaropoulos <stephanek brutele be>
- Cc: gtk-dev <gtk-app-devel-list gnome org>
- Subject: Re: help! gtk problem
- Date: Wed, 06 Nov 2002 10:31:22 -0500
GtkContainer is an "interface" type of object.
Use the GtkFixed implementation of GtkContainer for
"fixed widget positioning" and a Gtk[VH]Box for resizables.
Remember that you need the top parent wiget to
be a GtkWindow.
-Tristan
Stéphane Konstantaropoulos wrote:
Hello,
I am developping an app based on mplayer, to play movies.
I am new to gtk and not so experienced in C either.
There is my problem:
I have a widget: LumVOSdl that embeds an SDL surface or overlay
A container: LumPlayer
A window.
When I construct the container, I add a new LumVOSdl
There is the output of the program:
(main:11592): Gtk-WARNING **: GtkContainerClass::add not implemented for
`LumPlayer'
(main:11592): Gtk-CRITICAL **: file ../../gtk/gtkwidget.c: line 5716
(gtk_widget_real_realize): assertion `GTK_WIDGET_NO_WINDOW (widget)'
failed
(main:11592): Gdk-CRITICAL **: file ../../../gdk/x11/gdkwindow-x11.c:
line 976 (gdk_window_show): assertion `GDK_IS_WINDOW (window)' failed
is the "add" function not part of the GtkContainer? The GtkContiner is
the parent of my own container (specified in the struct in the first
place, like this:
struct _LumPlayer {
GtkContainer parent; /**< Parent object */
LumPlayerPrivate *priv;
};
struct _LumPlayerClass {
GtkContainerClass parent_class;
};
What do you think?
How about the other 2 warning about GTK_WIDGET_NO_WINDOW?
Thank you
--
_ _ _
/ \ \ \
/ / \ \ \ (el greco)
\/_ | S \ Muy Mano,
| \/ / Muy Presa.
\_ K / http://users.aber.ac.uk/ssk01
\ \
------------------------------------------------------------------------
signature.ascName: signature.asc
Type: application/pgp-signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]