From: Wybo Dekker Date: 2012-04-12T00:14:19+09:00 Subject: Re: Add a GUI to your Ruby Script On 2012-04-10 22:58, Eric C. wrote: > Hi: > > I think there are two possibilities: > > 1) Perhaps you edited the glade file for coinflip, and it now has a > gtkbox in the xml. You could uninstall the gem and start over to make > sure: > > sudo gem uninstall coinflip. but coinflip is no a gem, it's just a directory resulting from my trying the "Build a Ruby GUI in 10 minutes" > Then install it again. > > 2) You need to be using gtk2. The gtkbox is part of gtk3 (I think) > Make sure you're using gtk2. I found out that there is, apart from glade, also a glade-gtk2 in my xubuntu system. So I got to a fresh computer with a fresh xubuntu, installed glade-gtk2 and visualruby. I got to my ~/visualruby_examples and typed vr all_widgets and then tried to edit the glade file, after changing the glade command line from glade-3 into glade-gtk2 in Tools->Settings. But I got a window with the nice tools, but an empty editing field. Plus these error messages in the terminal: visualruby_examples>vr all_widgets (glade-gtk2:13030): GladeUI-WARNING **: Failed to open catalog directory '': Error opening directory '': No such file or directory (glade-gtk2:13030): GladeUI-WARNING **: Failed to open catalog directory '': Error opening directory '': No such file or directory GladeUI-Message: No displayable values for property GtkToolPalette::icon-size GladeUI-Message: No displayable values for property GtkToolItemGroup::ellipsize GladeUI-Message: No displayable values for property GtkToolItemGroup::header-relief (glade-gtk2:13030): GladeUI-CRITICAL **: Unable to load module 'vte' from any search paths (glade-gtk2:13030): GladeUI-WARNING **: Failed to load external library 'vte' (glade-gtk2:13030): GladeUI-WARNING **: We could not find the symbol "vte_terminal_get_type" (glade-gtk2:13030): GladeUI-WARNING **: Could not get the type from "VteTerminal" (glade-gtk2:13030): GladeUI-WARNING **: Failed to load the GType for 'VteTerminal' (glade-gtk2:13030): GladeUI-WARNING **: Tried to include undefined widget class 'VteTerminal' in a widget group GladeUI-Message: Glade needs artwork; a default icon will be used for the following classes: GtkSourceView needs an icon named 'widget-gtksourceview-gtksourceview' GladeUI-Message: The DevHelp installed on your system is too old, devhelp feature will be disabled. -- Wybo