forked from AuroraMiddleware/gtk
Stop using gdk_pango_get_context_for_display
The function does nothing useful for us.
This commit is contained in:
parent
2d6bd1ae6d
commit
0cd88cd6b7
@ -9044,13 +9044,11 @@ gtk_widget_get_font_map (GtkWidget *widget)
|
|||||||
PangoContext *
|
PangoContext *
|
||||||
gtk_widget_create_pango_context (GtkWidget *widget)
|
gtk_widget_create_pango_context (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
GdkDisplay *display;
|
|
||||||
PangoContext *context;
|
PangoContext *context;
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
||||||
|
|
||||||
display = gtk_widget_get_display (widget);
|
context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
|
||||||
context = gdk_pango_context_get_for_display (display);
|
|
||||||
update_pango_context (widget, context);
|
update_pango_context (widget, context);
|
||||||
pango_context_set_language (context, gtk_get_default_language ());
|
pango_context_set_language (context, gtk_get_default_language ());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user