summaryrefslogtreecommitdiff
path: root/gdk/directfb
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-06-20 00:14:43 +0200
committerJavier Jardón <jjardon@gnome.org>2010-06-20 00:22:26 +0200
commitca046f0cfbacecbf0fc6527f6972aed1e1a647c0 (patch)
tree9d8b310182c8e1747d947dbd95a5ad2eb7d7574b /gdk/directfb
parent0de09140212eda79bfcf79f375b36e95e1efbfa1 (diff)
downloadgtk+-ca046f0cfbacecbf0fc6527f6972aed1e1a647c0.tar.gz
Remove deprecated gdk_text_* and gdk_string_* functions
Remove gdk_string_extents(), gdk_text_extents(), gdk_text_extents_wc(), gdk_string_width(), gdk_text_width(), gdk_text_width_wc(), gdk_string_measure(), gdk_text_measure(), gdk_string_height(), gdk_text_height()
Diffstat (limited to 'gdk/directfb')
-rw-r--r--gdk/directfb/gdkfont-directfb.c72
1 files changed, 0 insertions, 72 deletions
diff --git a/gdk/directfb/gdkfont-directfb.c b/gdk/directfb/gdkfont-directfb.c
index a778a52c72..93ca82ab84 100644
--- a/gdk/directfb/gdkfont-directfb.c
+++ b/gdk/directfb/gdkfont-directfb.c
@@ -188,78 +188,6 @@ gdk_font_equal (const GdkFont *fonta,
return FALSE;
}
-gint
-gdk_text_width (GdkFont *font,
- const gchar *text,
- gint text_length)
-{
- GdkFontDirectFB *private;
-
- private = (GdkFontDirectFB*) font;
-
- return (text_length * private->size) / 2;
-}
-
-gint
-gdk_text_width_wc (GdkFont *font,
- const GdkWChar *text,
- gint text_length)
-{
- return 0;
-}
-
-void
-gdk_text_extents (GdkFont *font,
- const gchar *text,
- gint text_length,
- gint *lbearing,
- gint *rbearing,
- gint *width,
- gint *ascent,
- gint *descent)
-{
- if(ascent)
- *ascent = font->ascent;
- if(descent)
- *descent = font->descent;
- if(width)
- *width = gdk_text_width(font, text, text_length);
- if(lbearing)
- *lbearing = 0;
- if(rbearing)
- *rbearing = 0;
-}
-
-void
-gdk_text_extents_wc (GdkFont *font,
- const GdkWChar *text,
- gint text_length,
- gint *lbearing,
- gint *rbearing,
- gint *width,
- gint *ascent,
- gint *descent)
-{
- char *realstr;
- int i;
-
- realstr = alloca (text_length + 1);
-
- for(i = 0; i < text_length; i++)
- realstr[i] = text[i];
-
- realstr[i] = '\0';
-
- return gdk_text_extents (font,
- realstr,
- text_length,
- lbearing,
- rbearing,
- width,
- ascent,
- descent);
-}
-
GdkFont *
gdk_font_lookup (GdkNativeWindow xid)
{