Re: gtkfontsel.c (gtk_font_selection_set_name)
- From: Owen Taylor <otaylor redhat com>
- To: Michael Meeks <michael ximian com>
- Cc: Gtk Hackers <gtk-devel-list gnome org>
- Subject: Re: gtkfontsel.c (gtk_font_selection_set_name)
- Date: 10 Oct 2001 18:14:30 -0400
Michael Meeks <michael ximian com> writes:
> On Tue, 9 Oct 2001, Michael Meeks wrote:
> > This method needs a precondition on the name, or it dies in
> > strcasecmp, may I commit ?
>
> Doh; I'm a dofus - it doesn't; but something needs to be done
> about pango_font_description_get_family returning NULL into the
> strcasecmp; eg. for pango_font_description_from_string ("") on my system.
I think the simple approach of:
family = pango_font_description_get_family (new_desc);
g_return_if_fail (family != NULL);
Should be fine. Feel free to commit such a change.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]