[MPlayer-users] How to get a window ID for using with -wid?
Kevin DeKorte
kdekorte at yahoo.com
Tue May 18 19:15:44 CEST 2004
Velko,
This is from the mplayerplug-in code
#ifdef GTK_ENABLED
instance->drawing_area = gtk_drawing_area_new();
gtk_fixed_put(GTK_FIXED(instance->fixed_container),
instance->drawing_area, 0, 0);
gtk_widget_show(instance->drawing_area);
gtk_widget_set_events(instance->drawing_area,
GDK_BUTTON_PRESS_MASK);
instance->player_window =
GDK_WINDOW_XWINDOW(instance->drawing_area->window);
snprintf(buffer, 1024, "0x%x", (int) instance->player_window);
instance->td->argv[i++] = strdup(buffer);
#endif
instance->player_window is the value that is passed to the -wid parameter.
Kevin
On Tuesday 18 May 2004 10:41 am, welko wrote:
> Hello,
>
> I'm writing a small GTK-based program and I want to embed MPlayer in it.
> Using the option -wid seams to be the right way to do it, but I cannot
> figure out what kind of window ID MPlayer expects. Is it possible to use
> MPlayer instead of a regular GTK-widget?
>
> Could somebody give/point me to an example on how to do it, please? It
> would be best for me if the example is _not_ in perl.
>
> Best regards
> Velko
>
>
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
More information about the MPlayer-users
mailing list