[gtk+/gtk-2-24] win32: remove unused (and commented out) combo_box_draw_arrow



commit f7354da57421a485eb3aa820fcda1ffedbbc3909
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Tue Nov 8 10:11:57 2011 +0100

    win32: remove unused (and commented out) combo_box_draw_arrow

 modules/engines/ms-windows/msw_style.c |   33 --------------------------------
 1 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/modules/engines/ms-windows/msw_style.c b/modules/engines/ms-windows/msw_style.c
index 069f531..e2c169c 100755
--- a/modules/engines/ms-windows/msw_style.c
+++ b/modules/engines/ms-windows/msw_style.c
@@ -937,39 +937,6 @@ is_combo_box_child (GtkWidget *w)
   return FALSE;
 }
 
-/* This function is not needed anymore */
-/* static gboolean
-combo_box_draw_arrow (GtkStyle *style,
-		      GdkWindow *window,
-		      GtkStateType state,
-		      GdkRectangle *area, GtkWidget *widget)
-{
-  if (xp_theme_is_active ())
-    return TRUE;
-
-  if (widget && GTK_IS_TOGGLE_BUTTON (widget->parent))
-    {
-      DWORD border;
-      RECT rect;
-      HDC dc;
-      XpDCInfo dc_info;
-
-      dc = get_window_dc (style, window, state, &dc_info, area->x, area->y, area->width,
-			  area->height, &rect);
-      border = (GTK_TOGGLE_BUTTON (widget->parent)->
-		active ? DFCS_PUSHED | DFCS_FLAT : 0);
-
-      InflateRect (&rect, 1, 1);
-      DrawFrameControl (dc, &rect, DFC_SCROLL, DFCS_SCROLLDOWN | border);
-
-      release_window_dc (&dc_info);
-
-      return TRUE;
-    }
-
-  return FALSE;
-}*/
-
 static void
 draw_part (GdkDrawable *drawable,
            GdkColor *gc, GdkRectangle *area, gint x, gint y, Part part)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]