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 461618 - use GSlice for gtkrequisition
use GSlice for gtkrequisition
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.20.x
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2007-07-29 22:51 UTC by Christian Persch
Modified: 2010-07-10 04:18 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
patch (1.06 KB, patch)
2007-07-29 22:53 UTC, Christian Persch
none Details | Review
updated patch, fixes gtkstyle.c too (1.48 KB, patch)
2007-08-15 19:38 UTC, Christian Persch
reviewed Details | Review
Use GSlice for gtkrequisition (3.00 KB, patch)
2010-05-04 03:32 UTC, Javier Jardón (IRC: jjardon)
none Details | Review
Use GSlice for gtkrequisition.v2 (3.02 KB, patch)
2010-05-27 20:21 UTC, Javier Jardón (IRC: jjardon)
committed Details | Review

Description Christian Persch 2007-07-29 22:51:10 UTC
Analogous to using GSlice for GtkBorder, which was done in bug 383557.
Comment 1 Christian Persch 2007-07-29 22:53:35 UTC
Created attachment 92661 [details] [review]
patch
Comment 2 Tim Janik 2007-08-14 22:26:38 UTC
it might be a bit risky to commit this, gtkstyle.c also hardcodes g_free in                                                option_menu_get_props(). if the same habbit got copied iunto user code, we'll be causing a lot of hard to catch crashers.
Comment 3 Christian Persch 2007-08-15 19:38:26 UTC
Created attachment 93751 [details] [review]
updated patch, fixes gtkstyle.c too

It's a bit risky, yes. OTOH the gtkborder change (bug 383557) broke only a few programmes, and GtkRequistion is used even less (only in option menu, afaik). Since we done, have the gtkborder change, I think this change should be ok to do in the same release (2.12) ?
Comment 4 Christian Persch 2007-09-15 18:50:22 UTC
May I commit at least the parts of this patch that make gtkoptionmenu.c and gtkstyle.c use the correct free function ?
Comment 5 Matthias Clasen 2007-09-15 19:16:58 UTC
Yes, that part is fine to remove once the hard code freeze lifts.
Comment 6 Javier Jardón (IRC: jjardon) 2009-10-24 04:29:31 UTC
(In reply to comment #4)
> May I commit at least the parts of this patch that make gtkoptionmenu.c and
> gtkstyle.c use the correct free function ?

commited in commit 0983017630594f6d34db09f942a012c2b1a4e48f


How about the rest of the patch?
Comment 7 Javier Jardón (IRC: jjardon) 2010-05-04 03:32:37 UTC
Created attachment 160240 [details] [review]
Use GSlice for gtkrequisition

Updated patch against current master.

Also, added gtk_requisition_new to avoid memory allocator confusions when
using GtkRequisitions.
Comment 8 Javier Jardón (IRC: jjardon) 2010-05-27 20:21:55 UTC
Created attachment 162147 [details] [review]
Use GSlice for gtkrequisition.v2

Fix a typo in previous patch
Comment 9 Emmanuele Bassi (:ebassi) 2010-06-18 14:24:27 UTC
Review of attachment 162147 [details] [review]:

looks good
Comment 10 Javier Jardón (IRC: jjardon) 2010-07-10 04:17:27 UTC
Comment on attachment 162147 [details] [review]
Use GSlice for gtkrequisition.v2

commit eaab96c066b550445df1883b2fe8728d61f42b99
Comment 11 Javier Jardón (IRC: jjardon) 2010-07-10 04:18:15 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.