SDL surface in GTK window

Hello All,

I need to create a SDL surface within a GTK window which is a top level
window at a fixed position on the screen. Then map the SDL surface window Id
to mplayer for displaying video on to it.

I tried the window Id hack for SDL in GTK but SDL opens its own window after
the SDL_SetVideoMode call and then the display goes back into the GTK
window.

My requirement is just to have a SDL window at a fixed position within a top
level GTK window and pass the window Id of this sdl window to mplayer which
will take care of the rest.

Can anybody let me know the solution for displaying into GTK window using
SDL.

Regards,
Vijay.–
View this message in context: http://old.nabble.com/SDL-surface-in-GTK-window-tp28777517p28777517.html
Sent from the SDL mailing list archive at Nabble.com.

I wouldn’t be too surprised if SDL 1.3 changed SDL_SetVideoMode()
behavior a bit with respect to corner cases like yours. What version
of SDL are you using?On Fri, Jun 4, 2010 at 5:13 AM, gkpvij wrote:

I tried the window Id hack for SDL in GTK but SDL opens its own window after
the SDL_SetVideoMode call and then the display goes back into the GTK
window.


http://codebad.com/

Thanks for the quick reply. I am using debian based ubuntu as my development
environment and the SDL version is 1.2. Does the SDL_SetVideoMode() in SDL
1.3 not open a window of its own?

Donny Viszneki wrote:>

On Fri, Jun 4, 2010 at 5:13 AM, gkpvij <@gkpvij> wrote:

I tried the window Id hack for SDL in GTK but SDL opens its own window
after
the SDL_SetVideoMode call and then the display goes back into the GTK
window.

I wouldn’t be too surprised if SDL 1.3 changed SDL_SetVideoMode()
behavior a bit with respect to corner cases like yours. What version
of SDL are you using?


http://codebad.com/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context: http://old.nabble.com/SDL-surface-in-GTK-window-tp28777517p28814019.html
Sent from the SDL mailing list archive at Nabble.com.

No, it does, but now its implementation has changed. I’ve never done
what you’re trying to do, though.On Tue, Jun 8, 2010 at 1:52 AM, gkpvij wrote:

Thanks for the quick reply. I am using debian based ubuntu as my development
environment and the SDL version is 1.2. ?Does the ?SDL_SetVideoMode() in SDL
1.3 not open a window of its own?

Donny Viszneki wrote:

On Fri, Jun 4, 2010 at 5:13 AM, gkpvij wrote:

I tried the window Id hack for SDL in GTK but SDL opens its own window
after
the SDL_SetVideoMode call and then the display goes back into the GTK
window.

I wouldn’t be too surprised if SDL 1.3 changed SDL_SetVideoMode()
behavior a bit with respect to corner cases like yours. What version
of SDL are you using?


http://codebad.com/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context: http://old.nabble.com/SDL-surface-in-GTK-window-tp28777517p28814019.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


http://codebad.com/