On 30 December 2013 15:54, Christian Jaeger <chr...@gmail.com> wrote: > I'd like to run a mplayer subprocess with the mplayer -wid option and pass > it the x window id of some Gtk3::Fixed or other widget (do all widgets have > a window id?). The problem is that I can't figure out how to call get_xid on > any of the widgets or their parent windows, the method does not seem to > exist. How comes? I'm using libgtk3-perl 0.006-2, libgtk-3-0:i386 3.4.2-7 > on Debian. > > Interestingly this[1] Gtk2 based module uses a get_id method, not get_xid, > but I couldn't find that either. > > [1] > http://cpansearch.perl.org/src/GBROWN/Gtk2-Ex-MPlayerEmbed-0.02/lib/Gtk2/Ex/MPlayerEmbed.pm > > Why, how can I work around it, etc.?
You need to call get_id on a Gtk3::Socket. That's gtk_socket_get_id() in C: https://developer.gnome.org/gtk3/stable/gtk3-GtkSocket.html#gtk-socket-get-id _______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list