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 153823 - GtkTable resize bug
GtkTable resize bug
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
: 156613 (view as bug list)
Depends on:
Blocks: 157473
 
 
Reported: 2004-09-27 08:35 UTC by Shane Butler
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix (3.59 KB, patch)
2004-09-30 18:25 UTC, David Hoover
none Details | Review

Description Shane Butler 2004-09-27 08:35:26 UTC
http://lists.ximian.com/archives/public/glade-devel/2004-August/000783.html

Mickael Cornet wrote:
> I noticed that we can increase number of rows and
> columns (4,5,....) the table is redrawn with correct
> rows and columns but if we decrease it, the display
> stay at the max value, very strange...
> 
>Glade crashes when number of column is 1.

Mickael's solution:
http://lists.ximian.com/archives/public/glade-devel/2004-August/000794.html
Comment 1 David Hoover 2004-09-30 18:25:41 UTC
Created attachment 32121 [details] [review]
patch to fix

Just putting this patch into an easier to use format (picking it out of the
mail archives is a bit of a pain).

I tried applying it, and it works well for me.
Comment 2 Tristan Van Berkom 2004-10-27 20:15:01 UTC
Alright, I have patched that in to my source by hand, and made some
modifications to it, notably, there also was a leaked list:
     for (list = a_list; list; list = list->next)
     {
      ...
     }
     g_list_free (list); <-- DOH !

Ironicly enough, the list pointer was entitled "list_to_free" ;-D

So, My patch will also include a fix for paste bug, in which case the 
resize function is responsable for filling in all the blanks, not just
the ones that are added to the size.


Comment 3 Tristan Van Berkom 2004-10-27 20:15:51 UTC
*** Bug 156613 has been marked as a duplicate of this bug. ***
Comment 4 David Hoover 2004-10-28 18:54:55 UTC
Fixed by a checkin to bug 156416