toolpalette: Remove unused function

This commit is contained in:
Benjamin Otte 2014-02-23 20:00:08 +01:00
parent 6ea4bf8a9d
commit 6efd6611f2
2 changed files with 0 additions and 68 deletions

View File

@ -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,

View File

@ -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,