GNOME Bugzilla – Bug 664474
Glade crash on treeview edit
Last modified: 2012-04-02 07:51:07 UTC
Glade crashes every time I try to edit a GtkTreeview. Steps to reproduce: 1) Open Glade 2) Add a window 3) Add a GtkTreeview and a GtkListStore 4) Select the Treeview and click the "Edit" button in the toolbar -> Glade crashes I can reproduce this on 64bit arch The error message is: Gtk-ERROR **: GtkBox child GladeEditorTable minimum height: -4 < 0
Same on Ubuntu 11.10 64bits
This issue also occurs on Fedora 16. Here's a small patch which fixes the fatal error for me: --- gladeui/glade-editor-table.c 2011-11-21 22:11:09.053484174 +0100 +++ gladeui/glade-editor-table.c.orig 2011-11-21 22:11:00.077885388 +0100 @@ -103,7 +103,7 @@ gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL); - gtk_grid_set_row_spacing (GTK_GRID (self), 4); + //gtk_grid_set_row_spacing (GTK_GRID (self), 4); } static void With this patch applied, editing a treeview works fine again
Yes, I have been closing these duplicates for 2 weeks now. You will get the problem with GTK+ 3.1 until the problem was fixed in a very recent version of GTK+ 3.2. It's a GTK+ bug with the GtkGrid widget which only appears when the grid has no children and some row spacing specified (the problem started to appear in Glade when the meaning of 'row spacing' was swapped with the meaning of 'column spacing'. I suppose I will have to close 3 or 4 more duplicates of this until an update of GTK+ 3.2 hits the distros...
it's not clear that an update of gtk 3.2 will hits all stable distro, the new gtk created some other issues and will take some time before getting an update, could you point to the commit for distros who want to backport the fix rather?
For the second time on the forth bug reported for this: commit bb1d9aba86af715e5a5c53d5ad3b7dfcb720634e Author: Matthias Clasen <mclasen@redhat.com> Date: Fri Oct 21 16:23:03 2011 -0400 Fix natural/min widht calculations for empty grids https://bugzilla.gnome.org/show_bug.cgi?id=660139 Because Matthias did not spell it with 'GtkGrid' but only with 'grid', this costed me a good 20min. of time I really don't need to waste here. Next reporter gets to scratch through GTK+ commit logs himself...
*** Bug 665160 has been marked as a duplicate of this bug. ***
*** Bug 665280 has been marked as a duplicate of this bug. ***
*** Bug 665530 has been marked as a duplicate of this bug. ***
*** Bug 666467 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > Yes, I have been closing these duplicates for 2 weeks now. > > You will get the problem with GTK+ 3.1 until the problem was fixed in > a very recent version of GTK+ 3.2. > > It's a GTK+ bug with the GtkGrid widget which only appears when > the grid has no children and some row spacing specified (the problem > started to appear in Glade when the meaning of 'row spacing' was > swapped with the meaning of 'column spacing'. > > I suppose I will have to close 3 or 4 more duplicates of this > until an update of GTK+ 3.2 hits the distros... I use gtk3 3.2.3, glade 3.10.2 and have this bug on Archlinux 64 bit. In what release fixed this bug?
the above fix is not in the stable branch. I don't know why Tristan said it is fixed in newer 3.2 but wasn't cherry picked.
I'm not aware of what stable release the fix is in, if any. Sorry for any confusion caused, as you can note I was already annoyed at receiving 2 weeks of noise when I wrote that in a hurry. Spelled in another way: Please take this GTK+ bug up through proper GTK+ pipelines, this is not a Glade problem.
*** Bug 671080 has been marked as a duplicate of this bug. ***
*** Bug 671589 has been marked as a duplicate of this bug. ***
(In reply to comment #10) > I use gtk3 3.2.3, glade 3.10.2 and have this bug on Archlinux 64 bit. > In what release fixed this bug? Looking through the bugzilla and git, seems like it was fixed at GTK+ 3.3.2. https://bugzilla.gnome.org/show_bug.cgi?id=662255 http://git.gnome.org/browse/gtk+/commit/?id=bb1d9aba86af715e5a5c53d5ad3b7dfcb720634e http://git.gnome.org/browse/gtk+/log/?ofs=2200