Forum: Ruby-Gnome 2 ruby-glade-create-template error

Posted by Nicky Cheng (nicktarc)
on 2010-08-12 13:16
I am facing problem while converting my glade gui design into ruby
files. Here i paste the command and error:

Command:
ruby-glade-create-template example.glade > example.rb

Error Display:
/usr/bin/ruby-glade-create-template: line 58
   libglade-WARNING **:Expected <glade-interface>.  Got <interface>.
/usr/bin/ruby-glade-create-template: line 58
   libglade-WARNING **:did not finish in PARSER_FINISH state
/usr/bin/ruby-glade-create-template:58:in `initialize': could not load
glade file example.glade (IOError)
  from /usr/bin/ruby-glade-create-template:58:in `new'
  from /usr/bin/ruby-glade-create-template:58

Beside that, is there other ways to do?
Posted by Ben Arnold (seawolf)
on 2010-08-26 11:01
Hi Nicky --


I think you have a Glade file in the default GtkBuilder format, which 
Ruby-GTK
doesn't support. Save it as a LibGlade file in the "Save As" box or in 
the Project Properties. You will loose a couple of extended features but 
will be able to save & run it.

It seems that Gtk+ development is switched/has switched libraries and 
Ruby-GTK hasn't caught up yet!


Cheers,
Ben


Nicky Cheng wrote:
> I am facing problem while converting my glade gui design into ruby
> files. Here i paste the command and error:
> 
> Command:
> ruby-glade-create-template example.glade > example.rb
> 
> Error Display:
> /usr/bin/ruby-glade-create-template: line 58
>    libglade-WARNING **:Expected <glade-interface>.  Got <interface>.
> /usr/bin/ruby-glade-create-template: line 58
>    libglade-WARNING **:did not finish in PARSER_FINISH state
> /usr/bin/ruby-glade-create-template:58:in `initialize': could not load
> glade file example.glade (IOError)
>   from /usr/bin/ruby-glade-create-template:58:in `new'
>   from /usr/bin/ruby-glade-create-template:58
Posted by Nicky Cheng (nicktarc)
on 2010-09-12 20:57
Thanks Ben. After following your suggestion, no more error on 
terminal... but after that i run the generated ruby file. it just hang 
up... no error on terminal and no window displayed...

By the way, you hv any good site or book for me to learn this?

Ben Arnold wrote:
> Hi Nicky --
> 
> 
> I think you have a Glade file in the default GtkBuilder format, which 
> Ruby-GTK
> doesn't support. Save it as a LibGlade file in the "Save As" box or in 
> the Project Properties. You will loose a couple of extended features but 
> will be able to save & run it.
> 
> It seems that Gtk+ development is switched/has switched libraries and 
> Ruby-GTK hasn't caught up yet!
> 
> 
> Cheers,
> Ben
> 
> 
> Nicky Cheng wrote:
>> I am facing problem while converting my glade gui design into ruby
>> files. Here i paste the command and error:
>> 
>> Command:
>> ruby-glade-create-template example.glade > example.rb
>> 
>> Error Display:
>> /usr/bin/ruby-glade-create-template: line 58
>>    libglade-WARNING **:Expected <glade-interface>.  Got <interface>.
>> /usr/bin/ruby-glade-create-template: line 58
>>    libglade-WARNING **:did not finish in PARSER_FINISH state
>> /usr/bin/ruby-glade-create-template:58:in `initialize': could not load
>> glade file example.glade (IOError)
>>   from /usr/bin/ruby-glade-create-template:58:in `new'
>>   from /usr/bin/ruby-glade-create-template:58
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.