rdubya1 has joined #jruby
rdubya has quit [Ping timeout: 252 seconds]
Puffball has quit [Remote host closed the connection]
<GitHub118> [jruby] headius pushed 5 new commits to ruby-2.5: https://git.io/vAWn9
<GitHub118> jruby/ruby-2.5 51d23b7 Charles Oliver Nutter: rbconfig is gone except for sizeof.
<GitHub118> jruby/ruby-2.5 a141f84 Charles Oliver Nutter: mathn.rb is gone in 2.5.
<GitHub118> jruby/ruby-2.5 7d2a4a2 Charles Oliver Nutter: Update sync script to not require version in name.
<GitHub24> [jruby] headius pushed 1 new commit to ruby-2.5: https://git.io/vAWCt
<GitHub24> jruby/ruby-2.5 efe579e Charles Oliver Nutter: Merge branch 'master' into ruby-2.5
_whitelogger has joined #jruby
_whitelogger has joined #jruby
<kares> enebo: there won't be much 'complex' names for a given ruby method name - usually 1-2
<kares> not that it matters much - initially I thought about getting rid of complex names
<kares> the distinction was artificial really - we can now use a single runtime.addBoundMethods ... for simple names passing (name, name) tuple
<kares> now that I look at the PR I missed adding a boot-time only addAlias internal - can avoid synchronized but also the method lookup since its known from the previous addMethod call
mkristian has joined #jruby
mkristian has quit [Quit: This computer has gone to sleep]
mkristian has joined #jruby
mkristian has quit [Quit: This computer has gone to sleep]
damnski has joined #jruby
nicoulaj has quit [Quit: Ping timeout (120 seconds)]
damnski_ has quit [Read error: Connection reset by peer]
nicoulaj has joined #jruby
Cu5tosLim3n has joined #jruby
projectodd-ci has quit [*.net *.split]
Cu5tosLimen has quit [*.net *.split]
xardion has quit [Ping timeout: 248 seconds]
xardion has joined #jruby
nowhereFast has joined #jruby
mkristian has joined #jruby
remyuk has joined #jruby
<remyuk> I'am struggling for loading an icon (png Format) for Javafx and Jruby with jrubyfx, I did not find any example or docs so I tried :
<remyuk> button_login.graphic image("src/code/media/logo.png")
<remyuk> button_login.text = "#{t.login.form.button_login}"
<remyuk> button_login = find('#button_login') # See ComplexControl.fxml
<remyuk> 1)
<remyuk> I get: failed to coerce javafx.scene.image.Image to javafx.scene.Node>
<remyuk> 2)
<remyuk> button_login = find('#button_login') # See ComplexControl.fxml
<remyuk> button_login.text = "#{t.login.form.button_login}"
<remyuk> button_login.graphic = "src/code/media/logo.png"
<remyuk> I get: TypeError: cannot convert instance of class org.jruby.RubyString to class javafx.scene.Node>
<remyuk> So I'am confused about the correct syntax :(
<remyuk> Thanks for your help :)
<remyuk> jruby 9.1.15.0 (2.3.3) 2017-12-07 929fde8 Java HotSpot(TM) 64-Bit Server VM 25.161-b12 on 1.8.0_161-b12 +jit [linux-x86_64] - Ubuntu Xenial
<nowhereFast> came across https://github.com/sevos/methods recently and thought [1,2,3].each(&method.puts) looks tidy, reminding me of Java 8's method reference. The gem falls over on JRuby though with 'caller binding only supported in interpreter', can something be done with this one or am I wishing for too much?
<nowhereFast> remyuk: I think you might be missing a ImageView
<remyuk> i think i tried and it gives me missing method
<nowhereFast> Image.new("src/code/media/logo.png") would get the png in, then you could use that with ImageView
<remyuk> I did ImageView("src/code/media/logo.png"). let me try :)
<nowhereFast> you would need to java_import the relative classes if it can't find them
<remyuk> all right then i'll give a shot now
<remyuk> java_import 'javafx.scene.image.Image' ?
<nowhereFast> you might also want to take a peak at https://docs.oracle.com/javafx/2/ui_controls/button.htm
<nowhereFast> Image -> ImageView -> button.setGraphic
<remyuk> ok cheers
<nowhereFast> that jav_import looks right
mkristian has quit [Quit: This computer has gone to sleep]
<remyuk> nowhereFast. its working now ;)
<remyuk> img = image("src/code/media/if_gnome-session-logout_29657.png")
<remyuk> button_login.setGraphic ImageView.new(img)
<remyuk> img = image("src/code/media/if_gnome-session-logout_29657.png")
<remyuk> cheers
remyuk has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
remyuk has joined #jruby
remyuk has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
xardion has quit [Remote host closed the connection]
xardion has joined #jruby
nowhereFast has left #jruby [#jruby]
<GitHub125> [jruby] headius closed pull request #5051: Remove mathn.rb from stdlib (ruby-2.5...remove-mathn-from-stdlib) https://git.io/vACgV
xardion has quit [Ping timeout: 248 seconds]
xardion has joined #jruby
kith has joined #jruby