]> Pileus Git - ~andy/gtk/commitdiff
Remove unused draw_spin_entry_shadow(). (#80229)
authorOwen Taylor <otaylor@redhat.com>
Tue, 10 Dec 2002 00:34:44 +0000 (00:34 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 10 Dec 2002 00:34:44 +0000 (00:34 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkstyle.c

index e23c5a01ad7fc125e7a38294d1f09aabb5418592..670b29db47a2a8b2f4cec9d97c4d7e0409ca2da6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
index e23c5a01ad7fc125e7a38294d1f09aabb5418592..670b29db47a2a8b2f4cec9d97c4d7e0409ca2da6 100644 (file)
@@ -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>
 
        * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
index e23c5a01ad7fc125e7a38294d1f09aabb5418592..670b29db47a2a8b2f4cec9d97c4d7e0409ca2da6 100644 (file)
@@ -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>
 
        * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
index e23c5a01ad7fc125e7a38294d1f09aabb5418592..670b29db47a2a8b2f4cec9d97c4d7e0409ca2da6 100644 (file)
@@ -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>
 
        * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
index e23c5a01ad7fc125e7a38294d1f09aabb5418592..670b29db47a2a8b2f4cec9d97c4d7e0409ca2da6 100644 (file)
@@ -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>
 
        * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
index e23c5a01ad7fc125e7a38294d1f09aabb5418592..670b29db47a2a8b2f4cec9d97c4d7e0409ca2da6 100644 (file)
@@ -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>
 
        * gdk/x11/gdkinput-x11.c (_gdk_input_common_find_events):
index e3a8186331b068ce4ade6118d30639b98f663888..6d5f0751d59a07c35eca31f6cd63f0f9cb01f315 100644 (file)
@@ -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,