3

I am using GStreamer in my program, and I need to get window xid to use it. I have working solution now, but it's deprecated (I am using Gdk.X11Window now). How can I do the same but using Gdk.X11.Window so it won't be deprecated?

Here is what I'm doing now, it's working but, according to the compiler it's deprecated.

this.drawingArea.realize.connect(() => {
    this.xid = (uint*)Gdk.X11Window.get_xid(this.drawingArea.get_window());
});

(drawingArea is Gdk.DrawingArea)

Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
serge1peshcoff
  • 4,342
  • 11
  • 45
  • 76

1 Answers1

4

((Gdk.X11.Window) this.drawing_area.get_window()).get_xid ();

nemequ
  • 16,623
  • 1
  • 43
  • 62