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)
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
||||||
|
|||||||
@ -1,3 +1,8 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
Mon Dec 9 18:50:31 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
* gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
|
||||||
|
|||||||
@ -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
|
static void
|
||||||
draw_spinbutton_shadow (GtkStyle *style,
|
draw_spinbutton_shadow (GtkStyle *style,
|
||||||
GdkWindow *window,
|
GdkWindow *window,
|
||||||
|
|||||||
Reference in New Issue
Block a user