On Tue, 23 Jan 2001 12:40:01 +0100, Ronald Bultje said:
> Hi there,
>
> I would like to use some functions from the V4L-extension in XFree 4.
> Basically, I want to use these functions:
>
> extern int XvSelectVideoNotify(Display *display, Drawable drawable, Bool
> onoff);
> extern int XvSelectPortNotify(Display *display, XvPortID port, Bool onoff);
>
> I assume Drawable is just a GTK-object in which I can put objects (vbox,
> hbox, window). My question is, what is this "Display" and how do I get/make
> it?
Drawable is any Gtk widget that has a window I suppose but you must include
<gdk/gdkx.h> and use this macro
GDK_WINDOW_XWINDOW(win);
and display can be retrived by using this macro
GDK_WINDOW_XDISPLAY(win) or GDK_DISPLAY() marco, this will return the display
that X is using..
Maher
>
> Ronald
>
>
>
> _______________________________________________
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
--
http://www.muhri.net -- [EMAIL PROTECTED]
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list