From: espen Date: Mon, 10 Apr 2006 18:42:08 +0000 (+0000) Subject: Widget-modify-font now takes the correct number of arguments, and font description... X-Git-Tag: clg-0-92-1~6 X-Git-Url: https://git.distorted.org.uk/~mdw/clg/commitdiff_plain/b22f5374ff6ec897e05fca6711b3498be063e5d4 Widget-modify-font now takes the correct number of arguments, and font description may be given as string --- diff --git a/gtk/gtkwidget.lisp b/gtk/gtkwidget.lisp index 9cb149f..0a9c48a 100644 --- a/gtk/gtkwidget.lisp +++ b/gtk/gtkwidget.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gtkwidget.lisp,v 1.20 2006/02/26 15:24:46 espen Exp $ +;; $Id: gtkwidget.lisp,v 1.21 2006/04/10 18:42:08 espen Exp $ (in-package "GTK") @@ -333,10 +333,12 @@ received." (state state-type) (color gdk:color)) -(defbinding widget-modify-font () nil +(defbinding widget-modify-font (widget font-desc) nil (widget widget) - (state state-type) - (font-desc pango:font-description)) + ((etypecase font-desc + (pango:font-description font-desc) + (string (pango:font-description-from-string font-desc))) + pango:font-description)) (defbinding widget-create-pango-context () pango:context (widget widget))