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 . Got .
/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?
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 . Got .
/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
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 . Got .
/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