Switching to gtk3

Hi:

I’m trying to upgrade visualruby to gtk3. I understand that there is no
VBox or HBox in gtk3. When I change them in glade to Gtk::Boxes I get
this error:

GLib-GObject-WARNING **:cannot create instance of abstract
(non-instantiatable) type `GtkBox’
/home/eric/vrp/vrlib/lib/GladeGUI.rb:154: [BUG] Segmentation fault
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]

Why can’t I add a GtkBox to a Window?

E

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Switching to gtk3” on Tue, 24 Dec 2013
08:19:30 +0100,
“Eric C.” [email protected] wrote:

I’m trying to upgrade visualruby to gtk3. I understand that there is no
VBox or HBox in gtk3. When I change them in glade to Gtk::Boxes I get
this error:

GLib-GObject-WARNING **:cannot create instance of abstract
(non-instantiatable) type `GtkBox’
/home/eric/vrp/vrlib/lib/GladeGUI.rb:154: [BUG] Segmentation fault
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]

Why can’t I add a GtkBox to a Window?

Could you show your glade file and script?

Thanks,

kou

Eric C. wrote in post #1131515:

I’m trying to upgrade visualruby to gtk3.

Hi,

As visualruby work on windows: Warning !!
There are big issue with gtk3 : scrach when resize/move main window…

the bug seem depend on the content of the window:

GLib:ERROR:gmain.c:3057:g_main_dispatch: assertion failed:
(current->dispatching_sources == &current_source_link)

or

d:/usr/Ruby/local/Ruiby/lib/ruiby_gtk/ruiby_dsl3.rb:1865: [BUG]
Segmentation fault
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]

Hi guys.

Thanks for your great work.

I’m getting the error from line 154 in GladeGUI:

@builder = Gtk::Builder.new.add_from_file(file_name)

The file name is correct, and it tries to load the attached file
VR_ENV_GLOBAL.glade.

/home/eric/vrp/vrlib/lib/GladeGUI.rb: line 154
GLib-GObject-WARNING **:cannot create instance of abstract
(non-instantiatable) type `GtkBox’
/home/eric/vrp/vrlib/lib/GladeGUI.rb:154: [BUG] Segmentation fault
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-linux]

The history is this:

I’m upgrading to gtk3, so I first created the .glade file in glade v2.8
or so. I believe that it was a libglade file. I don’t understand the
distinction. Now, I’m opening it with glade v.3.12.1 and changing the
vboxes and hboxes to boxes. I save it, and the error appears. It works
fine with the old glade files.

There might be bugs in glade because its crashing and acting funny.

E

UPDATE: I noticed that they’ve changed vbuttonbox and hbuttonbox to
just buttonbox too. I changed everything to buttonbox, but the problem
persists.

Hi,

Thanks for attaching a script and a glade file. Could you
also attach a script that reproduces your problem?
GladeGUI.rb just defines a module. The module isn’t used.

Thanks,

kou

In [email protected]
“Re: [ruby-gnome2-devel-en] Switching to gtk3” on Tue, 24 Dec 2013
19:52:51 +0100,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs