From: Detlef R. <det...@gm...> - 2014-11-11 18:00:33
|
Hi, Am 26.10.2014 um 18:43 schrieb Masafumi Yokoyama: > Hi, > > 2014-09-01 0:36 GMT+09:00 Detlef Reichl <det...@gm...>: >> `const_missing': uninitialized constant Gdk::Window::ModifierType >> (NameError) > > This problem has fixed in master on GitHub. I would be glad if you could retry. > https://github.com/ruby-gnome2/ruby-gnome2/commit/397143ae84f9521c3a89f8ceed6048b4acbf119a > thank you for fixing this! It works like expected. detlef > >> 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] > > This behavior is as expected in GObject-Introspection based bindings. > The constants are defined at the first time of calling a constant. > > --- > 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] > irb(main):003:0> Gdk::Window > => Gdk::Window > irb(main):004:0> Gdk.constants > => [:Pixbuf, :PixbufError, :PixbufAnimation, :PixbufAnimationIter, > :PixbufSimpleAnim, :Pixdata, :PixbufLoader, :PixbufFormat, :Loader, > :LOG_DOMAIN, :Error, :Keyval, :Selection, :Rectangle, > :AppLaunchContext, :Atom, :AxisUse, :BUTTON_MIDDLE, :BUTTON_PRIMARY, > :BUTTON_SECONDARY, :ByteOrder, :CURRENT_TIME, :Color, :CrossingMode, > :Cursor, :CursorType, :Device, :DeviceManager, :DeviceType, :Display, > :DisplayManager, :DragAction, :DragContext, :DragProtocol, :Event, > :EventAny, :EventButton, :EventConfigure, :EventCrossing, :EventDND, > :EventExpose, :EventFocus, :EventGrabBroken, :EventKey, :EventMask, > :EventMotion, :EventOwnerChange, :EventProperty, :EventProximity, > :EventScroll, :EventSelection, :EventSequence, :EventSetting, > :EventTouch, :EventType, :EventVisibility, :EventWindowState, > :FilterReturn, :FrameClock, :FrameClockPhase, :FrameClockPrivate, > :FrameTimings, :FullscreenMode, :Geometry, :GrabOwnership, > :GrabStatus, :Gravity, :InputMode, :InputSource, :Keymap, :KeymapKey, > :MAX_TIMECOORD_AXES, :ModifierIntent, :ModifierType, :NotifyType, > :OwnerChange, :PARENT_RELATIVE, :PRIORITY_REDRAW, :Point, :PropMode, > :PropertyState, :RGBA, :Screen, :ScrollDirection, :SettingAction, > :Status, :TimeCoord, :VisibilityState, :Visual, :VisualType, > :WMDecoration, :WMFunction, :Window, :WindowAttr, > :WindowAttributesType, :WindowEdge, :WindowHints, :WindowRedirect, > :WindowState, :WindowType, :WindowTypeHint, :WindowWindowClass, > :Pixmap, :Property] > --- > > > Regards, > myokoym > > ------------------------------------------------------------------------------ > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > |