After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 664912 - GtkGrid assumes 3x3
GtkGrid assumes 3x3
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
git master
Other Linux
: Normal blocker
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
: 665156 671696 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-11-27 13:00 UTC by L. López
Modified: 2012-03-09 06:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot (75.80 KB, image/jpeg)
2011-11-27 13:00 UTC, L. López
Details

Description L. López 2011-11-27 13:00:05 UTC
Created attachment 202228 [details]
Screenshot

When loading files Glade assumes every GtkGrid has a 1x1 size but displayed UI is 3x3, no mater what widgets you packed inside (4x1, 2x2, etc...)

Output files seems to be ok, loading routine seems to be broken and leaves glade UI in a inconsistent state.

I think this bug is a blocker since it stops everyone to use GtkGrid widgets.
Comment 1 Tristan Van Berkom 2011-11-30 05:11:38 UTC
Juan recently made a tentative fix on the Grid so that we dont
serialize n-row / n-columns anymore.

The target behaviour is that Placeholders will be generated at
load time in a grid so that the grid is the size of the bottom-left-most
real widget.

Placeholders will not come back the way they used to work with GtkTable,
however your case is still a bug.

Based on Juan's algorithm the top screenshot should be the right one
(i.e. it should load a 3x1 grid... only because there is a real widget
in the 3rd position and there are real widgets in the first position).

I'm not sure why the extra placeholders are coming up, Juan is this
fixed in master already ?
Comment 2 Tristan Van Berkom 2011-11-30 05:12:53 UTC
*** Bug 665156 has been marked as a duplicate of this bug. ***
Comment 3 L. López 2012-02-13 17:13:22 UTC
I just found this bug (again).

It is still present in 3.10 and git versions. Any progress here? 

There is a test file: https://raw.github.com/ldotlopez/eina/master/eina/playlist/eina-playlist.ui
Comment 4 Juan Pablo Ugarte 2012-02-15 22:12:12 UTC
Opps, somehow I forgot to omit placeholders while calculating the grid size.
A new fix is in master, (at least the file loads properly now)
Comment 5 Mystilleef 2012-03-09 06:37:59 UTC
This bug is still present in Glade 3.11.
Comment 6 Mystilleef 2012-03-09 06:48:56 UTC
I just tested master and it is indeed fixed.
Comment 7 Mystilleef 2012-03-09 06:50:04 UTC
*** Bug 671696 has been marked as a duplicate of this bug. ***