Extract better font information from the GTK >= 3.2 font chooser.
authorChong Yidong <cyd@gnu.org>
Wed, 15 Aug 2012 07:58:34 +0000 (15:58 +0800)
committerChong Yidong <cyd@gnu.org>
Wed, 15 Aug 2012 07:58:34 +0000 (15:58 +0800)
commitf2045622a553a1f3919ccef6d94fc6e1207e38f6
treed938f60c4ace8cd1123d6046f93890022d8f6943
parente568d279c5ba2c408703653aee8f8f764b3eb897
Extract better font information from the GTK >= 3.2 font chooser.

* gtkutil.c (xg_get_font): Rename from xg_get_font_name.  When
using the new font chooser, use gtk_font_chooser_get_font_desc to
extract the font descriptor instead of just the font name.  In
that case, return a font spec instead of a string.
(x_last_font_name): Move to this file from xfns.c.

* xfns.c (Fx_select_font): The return value can also be a font
spec.  Move x_last_font_name management to gtkutil.c.

* xfaces.c: Make font weight and style symbols non-static.

* lisp/frame.el (set-frame-font): Accept font objects.
etc/NEWS
lisp/ChangeLog
lisp/frame.el
src/ChangeLog
src/gtkutil.c
src/gtkutil.h
src/xfaces.c
src/xfns.c