Re: Display
- From: "Maher Awamy" <muhri muhri net>
- To: Ronald Bultje <rbultje ronald bitfreak net>, gtk-list gnome org
- Subject: Re: Display
- Date: 23 Jan 2001 04:05:53 CST
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
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
--
http://www.muhri.net -- muhri muhri net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]