[gtk+] toolpalette: Remove unused function



commit 6efd6611f2c13e53e3d5064aebd94ee806e3ffbd
Author: Benjamin Otte <otte redhat com>
Date:   Sun Feb 23 20:00:08 2014 +0100

    toolpalette: Remove unused function

 gtk/gtktoolitemgroup.c      |   66 -------------------------------------------
 gtk/gtktoolpaletteprivate.h |    2 -
 2 files changed, 0 insertions(+), 68 deletions(-)
---
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 365403f..92227e1 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -2302,72 +2302,6 @@ _gtk_tool_item_group_item_size_request (GtkToolItemGroup *group,
     *requested_rows = rows;
 }
 
-void
-_gtk_tool_item_group_paint (GtkToolItemGroup *group,
-                            cairo_t          *cr)
-{
-  GtkAllocation allocation;
-  GtkWidget *widget = GTK_WIDGET (group);
-  GtkToolItemGroupPrivate* priv = group->priv;
-
-  gtk_widget_get_allocation (widget, &allocation);
-
-  gdk_cairo_set_source_window (cr, gtk_widget_get_window (widget),
-                               allocation.x,
-                               allocation.y);
-
-  if (priv->animation_timeout)
-    {
-      GtkAllocation header_allocation;
-      GtkOrientation orientation = gtk_tool_item_group_get_orientation (GTK_TOOL_SHELL (group));
-      cairo_pattern_t *mask;
-      gdouble v0, v1;
-
-      if (GTK_ORIENTATION_VERTICAL == orientation)
-        v1 = allocation.height;
-      else
-        v1 = allocation.width;
-
-      v0 = v1 - 256;
-
-      gtk_widget_get_allocation (priv->header, &header_allocation);
-      if (!gtk_widget_get_visible (priv->header))
-        v0 = MAX (v0, 0);
-      else if (GTK_ORIENTATION_VERTICAL == orientation)
-        v0 = MAX (v0, header_allocation.height);
-      else
-        v0 = MAX (v0, header_allocation.width);
-
-      v1 = MIN (v0 + 256, v1);
-
-      if (GTK_ORIENTATION_VERTICAL == orientation)
-        {
-          v0 += allocation.y;
-          v1 += allocation.y;
-
-          mask = cairo_pattern_create_linear (0.0, v0, 0.0, v1);
-        }
-      else
-        {
-          v0 += allocation.x;
-          v1 += allocation.x;
-
-          mask = cairo_pattern_create_linear (v0, 0.0, v1, 0.0);
-        }
-
-      cairo_pattern_add_color_stop_rgba (mask, 0.00, 0.0, 0.0, 0.0, 1.00);
-      cairo_pattern_add_color_stop_rgba (mask, 0.25, 0.0, 0.0, 0.0, 0.25);
-      cairo_pattern_add_color_stop_rgba (mask, 0.50, 0.0, 0.0, 0.0, 0.10);
-      cairo_pattern_add_color_stop_rgba (mask, 0.75, 0.0, 0.0, 0.0, 0.01);
-      cairo_pattern_add_color_stop_rgba (mask, 1.00, 0.0, 0.0, 0.0, 0.00);
-
-      cairo_mask (cr, mask);
-      cairo_pattern_destroy (mask);
-    }
-  else
-    cairo_paint (cr);
-}
-
 gint
 _gtk_tool_item_group_get_size_for_limit (GtkToolItemGroup *group,
                                          gint              limit,
diff --git a/gtk/gtktoolpaletteprivate.h b/gtk/gtktoolpaletteprivate.h
index fb09725..87e544b 100644
--- a/gtk/gtktoolpaletteprivate.h
+++ b/gtk/gtktoolpaletteprivate.h
@@ -41,8 +41,6 @@ gint _gtk_tool_item_group_get_height_for_width (GtkToolItemGroup *group,
                                                 gint              width);
 gint _gtk_tool_item_group_get_width_for_height (GtkToolItemGroup *group,
                                                 gint              height);
-void _gtk_tool_item_group_paint                (GtkToolItemGroup *group,
-                                                cairo_t          *cr);
 gint _gtk_tool_item_group_get_size_for_limit   (GtkToolItemGroup *group,
                                                 gint              limit,
                                                 gboolean          vertical,


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