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 156720 - [PATCH] SEGFAULT in gtk_label_set_pattern()
[PATCH] SEGFAULT in gtk_label_set_pattern()
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-10-28 15:25 UTC by Tristan Van Berkom
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This patch implements my expected behaviour. (715 bytes, patch)
2004-10-28 15:27 UTC, Tristan Van Berkom
none Details | Review

Description Tristan Van Berkom 2004-10-28 15:25:34 UTC
call gtk_label_set_pattern(label, NULL) which you'd
think would essentialy "unset" the pattern, but instead
segfaults.

Note that there must be text already in the label to reproduce.
Comment 1 Tristan Van Berkom 2004-10-28 15:27:27 UTC
Created attachment 33169 [details] [review]
This patch implements my expected behaviour.


gtk_label_set_pattern(label, NULL) now "unsets" the pattern.
Comment 2 Matthias Clasen 2004-11-03 06:20:47 UTC
2004-11-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtklabel.c (gtk_label_set_pattern_internal): Allow
	unsetting a pattern by passing NULL.  (#156720, Tristan Van Berkom)