[gtk+/gtk-2-24] Don't use deprecated Pango api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] Don't use deprecated Pango api
- Date: Tue, 8 Nov 2011 17:45:38 +0000 (UTC)
commit e4cee92e2285fb5f3713fa9023e7079187afe730
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 1 21:13:35 2011 -0400
Don't use deprecated Pango api
gdk/gdkpango.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c
index 825b238..6407ab2 100644
--- a/gdk/gdkpango.c
+++ b/gdk/gdkpango.c
@@ -1481,12 +1481,11 @@ gdk_pango_context_get_for_screen (GdkScreen *screen)
PangoContext *context;
const cairo_font_options_t *options;
double dpi;
-
+
g_return_val_if_fail (GDK_IS_SCREEN (screen), NULL);
fontmap = pango_cairo_font_map_get_default ();
-
- context = pango_cairo_font_map_create_context (PANGO_CAIRO_FONT_MAP (fontmap));
+ context = pango_font_map_create_context (fontmap);
options = gdk_screen_get_font_options (screen);
pango_cairo_context_set_font_options (context, options);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]