help! gtk problem



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
      \  \

Attachment: signature.asc
Description: PGP signature



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