diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-12-10 00:34:44 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-12-10 00:34:44 +0000 |
commit | 2a455794b78c29c981e83ee0955925f0085b50cb (patch) | |
tree | 9caa87ea6a3eb7fdba3cf8ff4359ef684ec24c6a /gtk | |
parent | b658a5d26c3b8bdc862ecbe1cc72acdd50a8c423 (diff) | |
download | gtk+-2a455794b78c29c981e83ee0955925f0085b50cb.tar.gz |
Remove unused draw_spin_entry_shadow(). (#80229)
Mon Dec 9 19:31:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.c (draw_spinbutton_shadow): Remove
unused draw_spin_entry_shadow(). (#80229)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkstyle.c | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c index e3a8186331..6d5f0751d5 100644 --- a/gtk/gtkstyle.c +++ b/gtk/gtkstyle.c @@ -2285,78 +2285,6 @@ draw_thin_shadow (GtkStyle *style, } } -#if 0 -/* - * See http://bugzilla.gnome.org/show_bug.cgi?id=80229 - */ -static void -draw_spin_entry_shadow (GtkStyle *style, - GdkWindow *window, - GtkStateType state, - GdkRectangle *area, - gint x, - gint y, - gint width, - gint height) -{ - gint window_width, window_height; - gboolean focus_inset; - - gdk_drawable_get_size (window, &window_width, &window_height); - - if (width == -1) - width = window_width; - if (height == 1) - height = window_height; - - focus_inset = (width < window_width && height < window_height); - - if (area) - { - gdk_gc_set_clip_rectangle (style->light_gc[state], area); - gdk_gc_set_clip_rectangle (style->dark_gc[state], area); - gdk_gc_set_clip_rectangle (style->black_gc, area); - gdk_gc_set_clip_rectangle (style->bg_gc[state], area); - gdk_gc_set_clip_rectangle (style->base_gc[state], area); - } - - gdk_draw_line (window, style->light_gc[state], - x, y + height - 1, x + width - 1, y + height - 1); - - gdk_draw_line (window, - style->base_gc[state], - x + width - 1, y + 1, x + width - 1, y + height - 3); - - if (!focus_inset) - { - gdk_draw_line (window, style->bg_gc[state], - x + 1, y + height - 2, x + width - 1, y + height - 2); - gdk_draw_line (window, - style->base_gc[state], - x + width - 2, y + 1, x + width - 2, y + height - 3); - - gdk_draw_line (window, style->black_gc, - x + 1, y + 1, x + width - 1, y + 1); - gdk_draw_line (window, style->black_gc, - x + 1, y + 1, x + 1, y + height - 2); - } - - gdk_draw_line (window, style->dark_gc[state], - x, y, x + width - 1, y); - gdk_draw_line (window, style->dark_gc[state], - x, y, x, y + height - 1); - - if (area) - { - gdk_gc_set_clip_rectangle (style->light_gc[state], NULL); - gdk_gc_set_clip_rectangle (style->dark_gc[state], NULL); - gdk_gc_set_clip_rectangle (style->black_gc, NULL); - gdk_gc_set_clip_rectangle (style->bg_gc[state], NULL); - gdk_gc_set_clip_rectangle (style->base_gc[state], NULL); - } -} -#endif - static void draw_spinbutton_shadow (GtkStyle *style, GdkWindow *window, |