forked from AuroraMiddleware/gtk
Add gdk_pango_context_get_for_display
This is the obvious 1 line equivalent of the for_screen function.
This commit is contained in:
parent
07f124e92d
commit
117c0c0aea
@ -607,6 +607,7 @@ gdk_pango_layout_get_clip_region
|
||||
gdk_pango_layout_line_get_clip_region
|
||||
gdk_pango_context_get
|
||||
gdk_pango_context_get_for_screen
|
||||
gdk_pango_context_get_for_display
|
||||
</SECTION>
|
||||
|
||||
<SECTION>
|
||||
|
@ -320,7 +320,7 @@ gdk_pango_layout_get_clip_region (PangoLayout *layout,
|
||||
PangoContext *
|
||||
gdk_pango_context_get (void)
|
||||
{
|
||||
return gdk_pango_context_get_for_screen (gdk_screen_get_default ());
|
||||
return gdk_pango_context_get_for_display (gdk_display_get_default ());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -366,3 +366,11 @@ gdk_pango_context_get_for_screen (GdkScreen *screen)
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
PangoContext *
|
||||
gdk_pango_context_get_for_display (GdkDisplay *display)
|
||||
{
|
||||
g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
|
||||
|
||||
return gdk_pango_context_get_for_screen (gdk_display_get_default_screen (display));
|
||||
}
|
||||
|
@ -31,6 +31,8 @@ G_BEGIN_DECLS
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
PangoContext *gdk_pango_context_get_for_screen (GdkScreen *screen);
|
||||
GDK_AVAILABLE_IN_3_22
|
||||
PangoContext *gdk_pango_context_get_for_display (GdkDisplay *display);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
PangoContext *gdk_pango_context_get (void);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user