drop the draw_string() function from GtkStyle

Reviewed by Michael Natterer.

* gtk/gtkstyle.c,
* gtk/gtkstyle.h: gdk_draw_string() has been deprecated and removed
  already. There's no one left who should be using this function
  (found this when porting sapwood to GTK+ 3.0)
* modules/engines/pixbuf/pixbuf-draw.c: don't implement this unused
  function
This commit is contained in:
Sven Herzberg
2010-06-03 14:00:34 +02:00
parent 7644ac519a
commit 5300dc2b36
3 changed files with 0 additions and 91 deletions

View File

@ -586,44 +586,6 @@ draw_diamond (GtkStyle *style,
x, y, width, height);
}
static void
draw_string (GtkStyle * style,
GdkWindow * window,
GtkStateType state,
GdkRectangle * area,
GtkWidget * widget,
const gchar *detail,
gint x,
gint y,
const gchar * string)
{
g_return_if_fail(style != NULL);
g_return_if_fail(window != NULL);
if (state == GTK_STATE_INSENSITIVE)
{
if (area)
{
gdk_gc_set_clip_rectangle(style->white_gc, area);
gdk_gc_set_clip_rectangle(style->fg_gc[state], area);
}
gdk_draw_string(window, gtk_style_get_font (style), style->fg_gc[state], x, y, string);
if (area)
{
gdk_gc_set_clip_rectangle(style->white_gc, NULL);
gdk_gc_set_clip_rectangle(style->fg_gc[state], NULL);
}
}
else
{
gdk_gc_set_clip_rectangle(style->fg_gc[state], area);
gdk_draw_string(window, gtk_style_get_font (style), style->fg_gc[state], x, y, string);
gdk_gc_set_clip_rectangle(style->fg_gc[state], NULL);
}
}
static void
draw_box (GtkStyle *style,
GdkWindow *window,
@ -1094,7 +1056,6 @@ pixbuf_style_class_init (PixbufStyleClass *klass)
style_class->draw_shadow = draw_shadow;
style_class->draw_arrow = draw_arrow;
style_class->draw_diamond = draw_diamond;
style_class->draw_string = draw_string;
style_class->draw_box = draw_box;
style_class->draw_flat_box = draw_flat_box;
style_class->draw_check = draw_check;