mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Accept a NULL string.
2009-02-06 Matthew Barnes <mbarnes@redhat.com> * gtk/gtklabel.c (gtk_label_set_label): Accept a NULL string. svn path=/trunk/; revision=22289
This commit is contained in:
parent
c4bcc3e989
commit
302cc82c71
@ -1,3 +1,7 @@
|
||||
2009-02-06 Matthew Barnes <mbarnes@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_set_label): Accept a NULL string.
|
||||
|
||||
2009-02-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Bug 538439 – tooltip may appear in upper left corner instead of
|
||||
|
@ -1760,11 +1760,10 @@ gtk_label_set_label (GtkLabel *label,
|
||||
const gchar *str)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_LABEL (label));
|
||||
g_return_if_fail (str != NULL);
|
||||
|
||||
g_object_freeze_notify (G_OBJECT (label));
|
||||
|
||||
gtk_label_set_label_internal (label, g_strdup (str));
|
||||
gtk_label_set_label_internal (label, g_strdup (str ? str : ""));
|
||||
gtk_label_recalculate (label);
|
||||
|
||||
g_object_thaw_notify (G_OBJECT (label));
|
||||
|
Loading…
Reference in New Issue
Block a user