Displaying 2 results from an estimated 2 matches for "win_on".
Did you mean:
winton
2007 Jun 23
0
[1060] trunk/wxruby2/swig/fixevents.rb: Include some previously missing events, rehash and simplify
...lass="cx">
</span><del>-$windows_only = [
-        ''EVT_DIALUP''
-]
</del><ins>+ def initialize(*args)
+ super
+ @excluded = true if EXCLUDED.any? { | x | x === name }
+ @win_only = true if WINDOWS_ONLY.any? { | x | x === name }
+ end
</ins><span class="cx">
</span><del>-File.open(ARGV[0], "a") do | out |
</del><ins>+ def excluded?
+ @excluded
+ end
</ins><span class="cx">
</span>&l...
2007 Jun 25
0
[1067] trunk/wxruby2: Set up event handlers in Ruby rather than by post-processing SWIG output
...x but not exposed in WxRuby (b/c they cause problems)
- EXCLUDED = [ /^EVT_TAB/, ''EVT_COMMAND'' ]
- # These event types only work on Windows
- WINDOWS_ONLY = [ /^EVT_DIALUP/ ]
-
- def initialize(*args)
- super
- @excluded = true if EXCLUDED.any? { | x | x === name }
- @win_only = true if WINDOWS_ONLY.any? { | x | x === name }
- end
-
- def excluded?
- @excluded
- end
-
- def windows_only?
- @win_only
- end
-end
-
-# Convert the raw arrays into informative event type objects
-$events.map! { | x | WxEventType[ *x ] }
-
-# Append this stuff to the default SWIG...