# What's in Gtk.init?

**URL:** <https://www.ruby-forum.com/t/whats-in-gtk-init/75359>\
**Category:** Ruby-Gnome 2\
**Created:** [November 9, 2006, 11:14am UTC](https://www.ruby-forum.com/t/whats-in-gtk-init/75359 "2006-11-09T11:14:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wang\_pengchao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d07c76/32.png) [@wang\_pengchao](https://www.ruby-forum.com/u/wang_pengchao)\
**Post date:** [November 9, 2006, 11:14am UTC](https://www.ruby-forum.com/t/whats-in-gtk-init/75359/1 "2006-11-09T11:14:06Z")

</div>

Hi guys

I’m trying to use gtk it in my own ruby project. My problem now is  
that I got this strange exception: “in init: can not convert false  
into String.” My ruby runtime environment is not standard one,  
embedded within another program(vim). So I suspect that some global  
variable is not assigned to correct object, but I really don’t know  
which one. Could somebody provide some help? Maybe just show me the  
code in that function, or the location in code base.

thanks

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)

---

<div class="post-metadata">

**Author:** ![wang\_pengchao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d07c76/32.png) [@wang\_pengchao](https://www.ruby-forum.com/u/wang_pengchao)\
**Post date:** [November 9, 2006, 2:08pm UTC](https://www.ruby-forum.com/t/whats-in-gtk-init/75359/2 "2006-11-09T14:08:48Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] what’s in Gtk.init?” on Thu, 9 Nov 2006  
18:12:52 +0800,  
“wang pengchao” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m trying to use gtk it in my own ruby project. My problem now is  
> that I got this strange exception: “in init: can not convert false  
> into String.” My ruby runtime environment is not standard one,  
> embedded within another program(vim). So I suspect that some global  
> variable is not assigned to correct object, but I really don’t know  
> which one. Could somebody provide some help?

Please check $0.

> ```
> Maybe just show me the
> 
> ```
> 
> code in that function, or the location in code base.

I think so.

## Thanks,

kou

* * *

Using Tomcat but need to do more? Need to support web services,  
security?  
Get stuff done quickly with pre-integrated technology to make your job  
easier  
Download IBM WebSphere Application Server v.1.0.1 based on Apache  
Geronimo  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642)
