diff options
author | Benjamin Otte <otte@redhat.com> | 2010-07-21 14:23:22 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-08-10 21:02:28 +0200 |
commit | 805e0d108268a8cd0c267032107e95ea7c96b876 (patch) | |
tree | d649362e98b06dbb8e677427b3b9264735713269 /gtk/gtkpango.h | |
parent | 9f1939cbd5aa8fb9ee98e5400780194c9bbb25cf (diff) | |
download | gtk+-805e0d108268a8cd0c267032107e95ea7c96b876.tar.gz |
label: Draw all text using PangoCairo
This includes the addition of a "small" helper function,
_gtk_pango_fill_layout() that ignores color information. This
functionality is not available inside Pango and until that happens, we
need this fix. The bug is filed at:
https://bugzilla.gnome.org/show_bug.cgi?id=624917
Diffstat (limited to 'gtk/gtkpango.h')
-rw-r--r-- | gtk/gtkpango.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gtk/gtkpango.h b/gtk/gtkpango.h new file mode 100644 index 0000000000..d02c7a655c --- /dev/null +++ b/gtk/gtkpango.h @@ -0,0 +1,47 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + +#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) +#error "Only <gtk/gtk.h> can be included directly." +#endif + +#ifndef __GTK_PANGO_H__ +#define __GTK_PANGO_H__ + + +#include <pango/pangocairo.h> + + +G_BEGIN_DECLS + +void +_gtk_pango_fill_layout (cairo_t *cr, + PangoLayout *layout); + + +G_END_DECLS + +#endif /* __GTK_PANGO_H__ */ |