From: John L. <jo...@la...> - 2017-02-21 21:13:12
|
I'm porting some code from Python to Ruby and need to get the xid of a window. I have the following original line of code (in Python): self.get_toplevel().get_window().get_xid() which I have coded in Ruby as toplevel.window.xid However I get undefined method `xid' for #<#<Class:0x000000038e40b0>:0x3975b00 ptr=0x28a64d0> (NoMethodError) The class is a subclass of Gtk::Window. I've seen other posts that indicate this should work. I can see xid defined in rbgdkx11x11window.c but surrounded by #ifdef GDK_WINDOWING_X11. I don't know if this is an issue with how the code was built ? I installed using `gem install gtk3`, have gdk3 (3.1.1). This is on an Arch Linux box with Ruby ruby 2.3.3p222 (2016-11-21 revision 56859) Thanks for any help. John |