From: Detlef R. <det...@gm...> - 2014-08-31 15:49:22
|
Hi, I wanted to try out gkt3-gi from current git. If I start a program where I had changed the require call from 'gtk3' to 'gtk3-gi' it fails with the message: `const_missing': uninitialized constant Gdk::Window::ModifierType (NameError) The strange thing is, that if I require gdk3 in irb, Gdk has the following constants defined: irb(main):001:0> require 'gdk3' => true irb(main):002:0> Gdk.constants => [:Pixbuf, :PixbufError, :PixbufAnimation, :PixbufAnimationIter, :PixbufSimpleAnim, :Pixdata, :PixbufLoader, :PixbufFormat, :GrabStatus, :Atom, :Color, :Status, :Cursor, :Device, :DeviceManager, :Display, :DisplayManager, :DragContext, :Event, :EventAny, :EventExpose, :EventVisibility, :EventMotion, :EventButton, :EventTouch, :EventScroll, :EventKey, :EventCrossing, :EventFocus, :EventConfigure, :EventProperty, :EventSelection, :EventOwnerChange, :EventProximity, :EventDND, :EventWindowState, :EventSetting, :EventGrabBroken, :Geometry, :Keymap, :Keyval, :Pango, :Property, :Rectangle, :RGBA, :Screen, :Selection, :Threads, :TimeCoord, :Visual, :Window, :WindowAttr, :LOG_DOMAIN, :Pixmap] but if gdk3 is required from gtk3-gi Gdk has only the following constants defined: irb(main):001:0> require 'gtk3-gi' => true irb(main):002:0> Gdk.constants => [:Pixbuf, :PixbufError, :PixbufAnimation, :PixbufAnimationIter, :PixbufSimpleAnim, :Pixdata, :PixbufLoader, :PixbufFormat, :Loader, :LOG_DOMAIN, :Error] If I add require 'gdk3' in front of require 'gtk3-gi' it at least gets a little bit further and fails in Gtk. Is it necessary to require gdk3 directly? Cheers, detlef |