[gtk+] Drop gdk_pango_context_get



commit 5c2e254f6586f6851c46f5226282dda0940dacbe
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 30 21:36:37 2017 -0400

    Drop gdk_pango_context_get
    
    This is a trivial convenience api, and it is not used in gtk.

 docs/reference/gdk/gdk4-sections.txt |    1 -
 gdk/gdkpango.c                       |   25 -------------------------
 gdk/gdkpango.h                       |    3 ---
 3 files changed, 0 insertions(+), 29 deletions(-)
---
diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt
index 089fe31..3f2d89a 100644
--- a/docs/reference/gdk/gdk4-sections.txt
+++ b/docs/reference/gdk/gdk4-sections.txt
@@ -497,7 +497,6 @@ GDK_TYPE_PROP_MODE
 <FILE>pango_interaction</FILE>
 gdk_pango_layout_get_clip_region
 gdk_pango_layout_line_get_clip_region
-gdk_pango_context_get
 gdk_pango_context_get_for_display
 </SECTION>
 
diff --git a/gdk/gdkpango.c b/gdk/gdkpango.c
index 83d1072..13b20d2 100644
--- a/gdk/gdkpango.c
+++ b/gdk/gdkpango.c
@@ -299,31 +299,6 @@ gdk_pango_layout_get_clip_region (PangoLayout *layout,
 }
 
 /**
- * gdk_pango_context_get:
- * 
- * Creates a #PangoContext for the default GDK screen.
- *
- * The context must be freed when you’re finished with it.
- * 
- * When using GTK+, normally you should use gtk_widget_get_pango_context()
- * instead of this function, to get the appropriate context for
- * the widget you intend to render text onto.
- * 
- * The newly created context will have the default font options (see
- * #cairo_font_options_t) for the default screen; if these options
- * change it will not be updated. Using gtk_widget_get_pango_context()
- * is more convenient if you want to keep a context around and track
- * changes to the screen’s font rendering settings.
- *
- * Returns: (transfer full): a new #PangoContext for the default display
- **/
-PangoContext *
-gdk_pango_context_get (void)
-{
-  return gdk_pango_context_get_for_display (gdk_display_get_default ());
-}
-
-/**
  * gdk_pango_context_get_for_display:
  * @display: the #GdkDisplay for which the context is to be created
  *
diff --git a/gdk/gdkpango.h b/gdk/gdkpango.h
index 899cd4d..99be71b 100644
--- a/gdk/gdkpango.h
+++ b/gdk/gdkpango.h
@@ -29,9 +29,6 @@ G_BEGIN_DECLS
 
 GDK_AVAILABLE_IN_3_22
 PangoContext *gdk_pango_context_get_for_display (GdkDisplay *display);
-GDK_AVAILABLE_IN_ALL
-PangoContext *gdk_pango_context_get            (void);
-
 
 /* Get a clip region to draw only part of a layout or
  * line. index_ranges contains alternating range starts/stops. The


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]