summaryrefslogtreecommitdiff
path: root/gdk/gdkinternals.h
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-05-22 04:04:51 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-05-22 04:04:51 +0000
commitf3b986724c3174fd48e14376b908d7b302a86095 (patch)
tree885706920edf8bbdbc4db2e454c0c00aeb3b3cf9 /gdk/gdkinternals.h
parent3023c03a360c1b3f92800dae2d66dbfae0fa277a (diff)
downloadgtk+-f3b986724c3174fd48e14376b908d7b302a86095.tar.gz
Add new function _gdk_screen_get_font_map() and have one fontmap per
2006-05-21 Behdad Esfahbod <behdad@gnome.org> * gdk/gdkinternals.h: * gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize), (update_fontmap_resolution), (gdk_screen_set_resolution): Add new function _gdk_screen_get_font_map() and have one fontmap per screen, with the correct resolution set on it. * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use _gdk_screen_get_font_map() instead of setting resolution on the PangoCairoContext. (#342529)
Diffstat (limited to 'gdk/gdkinternals.h')
-rw-r--r--gdk/gdkinternals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 1c279f4ec3..20c7d1d2fe 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -29,6 +29,7 @@
#include <gdk/gdktypes.h>
#include <gdk/gdkwindow.h>
#include <gdk/gdkprivate.h>
+#include <pango/pango.h>
#ifndef __GDK_INTERNALS_H__
#define __GDK_INTERNALS_H__
@@ -404,6 +405,10 @@ void _gdk_windowing_gc_get_foreground (GdkGC *gc,
void _gdk_windowing_gc_get_background (GdkGC *gc,
GdkColor *color);
+/* Gets the fontmap for screen */
+PangoFontMap *
+_gdk_screen_get_font_map (GdkScreen *screen);
+
/************************************
* Initialization and exit routines *
************************************/