nobody at rubyforge.org
2006-Nov-01 01:37 UTC
[Wxruby-development] [719] trunk/wxruby2: Hide unsupported PrinterDC class on GTK (Alex Fenton)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; } #msg dt { float: left; width: 6em; font-weight: bold; } #msg dt:after { content:'':'';} #msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; } #msg dl a { font-weight: bold} #msg dl a:link { color:#fc3; } #msg dl a:active { color:#ff0; } #msg dl a:visited { color:#cc6; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; } #msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; } #msg ul, pre { overflow: auto; } #header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; } #patch { width: 100%; } #patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;} #patch .propset h4, #patch .binary h4 {margin:0;} #patch pre {padding:0;line-height:1.2em;margin:0;} #patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;} #patch .propset .diff, #patch .binary .diff {padding:10px 0;} #patch span {display:block;padding:0 10px;} #patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;} #patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;} #patch .lines, .info {color:#888;background:#fff;} --></style> <title>[719] trunk/wxruby2: Hide unsupported PrinterDC class on GTK (Alex Fenton)</title> </head> <body> <div id="msg"> <dl> <dt>Revision</dt> <dd>719</dd> <dt>Author</dt> <dd>brokentoy</dd> <dt>Date</dt> <dd>2006-10-31 20:37:15 -0500 (Tue, 31 Oct 2006)</dd> </dl> <h3>Log Message</h3> <pre>Hide unsupported PrinterDC class on GTK (Alex Fenton)</pre> <h3>Modified Paths</h3> <ul> <li><a href="#trunkwxruby2rakerakelinuxrb">trunk/wxruby2/rake/rakelinux.rb</a></li> <li><a href="#trunkwxruby2rakerakewxrb">trunk/wxruby2/rake/rakewx.rb</a></li> <li><a href="#trunkwxruby2rakefile">trunk/wxruby2/rakefile</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="trunkwxruby2rakerakelinuxrb"></a> <div class="modfile"><h4>Modified: trunk/wxruby2/rake/rakelinux.rb (718 => 719)</h4> <pre class="diff"><span> <span class="info">--- trunk/wxruby2/rake/rakelinux.rb        2006-10-25 04:57:12 UTC (rev 718) +++ trunk/wxruby2/rake/rakelinux.rb        2006-11-01 01:37:15 UTC (rev 719) </span><span class="lines">@@ -13,6 +13,8 @@ </span><span class="cx"> # create a .so binary </span><span class="cx"> $extra_ldflags = ''-shared'' </span><span class="cx"> </span><ins>+# This class is not available on WXGTK +$excluded_classes << ''PrinterDC'' </ins><span class="cx"> </span><span class="cx"> # This appears to work as of 2006-08-23, Ubuntu 6.06, wx 2.6.3 </span><span class="cx"> # You must have a non-shared, unicode wx configuration available </span></span></pre></div> <a id="trunkwxruby2rakerakewxrb"></a> <div class="modfile"><h4>Modified: trunk/wxruby2/rake/rakewx.rb (718 => 719)</h4> <pre class="diff"><span> <span class="info">--- trunk/wxruby2/rake/rakewx.rb        2006-10-25 04:57:12 UTC (rev 718) +++ trunk/wxruby2/rake/rakewx.rb        2006-11-01 01:37:15 UTC (rev 719) </span><span class="lines">@@ -98,15 +98,9 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def get_classes </span><del>- classes = [] - Dir::foreach($classes_dir) do | filename | - filespec = File.join($classes_dir, filename) - #puts("#{filename}: #{File.directory?(filespec)}) - if(File.extname(filename) == ''.i'') - classes << File.basename(filename, ''.i'') - end - end - #puts classes </del><ins>+ classes = FileList[ "#{$classes_dir}/*.i" ] + classes.map! { | ifile| File.basename(ifile, ''.i'') } + classes -= $excluded_classes </ins><span class="cx"> return classes.sort </span><span class="cx"> end </span><span class="cx"> </span></span></pre></div> <a id="trunkwxruby2rakefile"></a> <div class="modfile"><h4>Modified: trunk/wxruby2/rakefile (718 => 719)</h4> <pre class="diff"><span> <span class="info">--- trunk/wxruby2/rakefile        2006-10-25 04:57:12 UTC (rev 718) +++ trunk/wxruby2/rakefile        2006-11-01 01:37:15 UTC (rev 719) </span><span class="lines">@@ -34,6 +34,8 @@ </span><span class="cx"> $extra_objs = "" </span><span class="cx"> $extra_libs = "" </span><span class="cx"> $link_output_flag = "-o " </span><ins>+# some classes are not implemented by WxWidgets on all platforms +$excluded_classes = [] </ins><span class="cx"> </span><span class="cx"> ############################# </span><span class="cx"> # platform-specific </span></span></pre> </div> </div> </body> </html>
Reasonably Related Threads
- [702] trunk/wxruby2: Additions to allow faster compiling via a Makefile on dual-processor
- [713] trunk/wxruby2: Patch for rake install, added rake uninstall
- PrinterDC.i Patch
- [919] trunk/wxruby2/rake/rakelinux.rb: Use wxWidgets built-in support libs; add wxScintilla option
- [ wxruby-Bugs-16718 ] rake aborted! can''t convert nil into String