2015-01-20 00:48:46 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright (C) 2014,2015 Benjamin Otte
|
|
|
|
*
|
|
|
|
* Authors: Benjamin Otte <otte@gnome.org>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include "gtkrendericonprivate.h"
|
|
|
|
|
2016-12-31 00:15:52 +00:00
|
|
|
#include "gtkcssfiltervalueprivate.h"
|
2015-12-15 13:52:17 +00:00
|
|
|
#include "gtkcssimagebuiltinprivate.h"
|
2015-01-20 00:48:46 +00:00
|
|
|
#include "gtkcssimagevalueprivate.h"
|
|
|
|
#include "gtkcssshadowsvalueprivate.h"
|
|
|
|
#include "gtkcssstyleprivate.h"
|
|
|
|
#include "gtkcsstransformvalueprivate.h"
|
2017-11-10 14:04:13 +00:00
|
|
|
#include "gtkiconthemeprivate.h"
|
2018-03-11 05:29:46 +00:00
|
|
|
#include "gtksnapshot.h"
|
2015-01-20 00:48:46 +00:00
|
|
|
|
2015-12-16 01:15:20 +00:00
|
|
|
#include <math.h>
|
|
|
|
|
2015-01-20 00:48:46 +00:00
|
|
|
void
|
|
|
|
gtk_css_style_render_icon (GtkCssStyle *style,
|
|
|
|
cairo_t *cr,
|
|
|
|
double x,
|
|
|
|
double y,
|
|
|
|
double width,
|
|
|
|
double height,
|
|
|
|
GtkCssImageBuiltinType builtin_type)
|
|
|
|
{
|
|
|
|
const GtkCssValue *shadows;
|
2016-11-18 15:01:56 +00:00
|
|
|
graphene_matrix_t graphene_matrix;
|
2016-01-06 17:14:11 +00:00
|
|
|
cairo_matrix_t matrix, transform_matrix, saved_matrix;
|
2015-01-20 00:48:46 +00:00
|
|
|
GtkCssImage *image;
|
|
|
|
|
|
|
|
g_return_if_fail (GTK_IS_CSS_STYLE (style));
|
|
|
|
g_return_if_fail (cr != NULL);
|
|
|
|
|
|
|
|
image = _gtk_css_image_value_get_image (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_SOURCE));
|
|
|
|
if (image == NULL)
|
|
|
|
return;
|
|
|
|
|
2016-01-06 17:14:11 +00:00
|
|
|
cairo_get_matrix (cr, &saved_matrix);
|
|
|
|
|
2015-01-20 00:48:46 +00:00
|
|
|
shadows = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_SHADOW);
|
|
|
|
|
|
|
|
cairo_translate (cr, x, y);
|
|
|
|
|
2016-11-18 15:01:56 +00:00
|
|
|
if (gtk_css_transform_value_get_matrix (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_TRANSFORM), &graphene_matrix) &&
|
|
|
|
graphene_matrix_is_2d (&graphene_matrix))
|
2015-01-20 00:48:46 +00:00
|
|
|
{
|
2016-11-18 15:01:56 +00:00
|
|
|
graphene_matrix_to_2d (&graphene_matrix,
|
|
|
|
&transform_matrix.xx, &transform_matrix.yx,
|
|
|
|
&transform_matrix.xy, &transform_matrix.yy,
|
|
|
|
&transform_matrix.x0, &transform_matrix.y0);
|
2015-01-20 00:48:46 +00:00
|
|
|
/* XXX: Implement -gtk-icon-transform-origin instead of hardcoding "50% 50%" here */
|
|
|
|
cairo_matrix_init_translate (&matrix, width / 2, height / 2);
|
|
|
|
cairo_matrix_multiply (&matrix, &transform_matrix, &matrix);
|
|
|
|
cairo_matrix_translate (&matrix, - width / 2, - height / 2);
|
|
|
|
|
|
|
|
if (_gtk_css_shadows_value_is_none (shadows))
|
|
|
|
{
|
|
|
|
cairo_transform (cr, &matrix);
|
|
|
|
gtk_css_image_builtin_draw (image, cr, width, height, builtin_type);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
cairo_push_group (cr);
|
|
|
|
cairo_transform (cr, &matrix);
|
|
|
|
gtk_css_image_builtin_draw (image, cr, width, height, builtin_type);
|
|
|
|
cairo_pop_group_to_source (cr);
|
|
|
|
_gtk_css_shadows_value_paint_icon (shadows, cr);
|
|
|
|
cairo_paint (cr);
|
|
|
|
}
|
|
|
|
}
|
2016-01-06 17:14:11 +00:00
|
|
|
|
|
|
|
cairo_set_matrix (cr, &saved_matrix);
|
2015-01-20 00:48:46 +00:00
|
|
|
}
|
|
|
|
|
2016-11-16 19:51:53 +00:00
|
|
|
void
|
|
|
|
gtk_css_style_snapshot_icon (GtkCssStyle *style,
|
|
|
|
GtkSnapshot *snapshot,
|
|
|
|
double width,
|
|
|
|
double height,
|
|
|
|
GtkCssImageBuiltinType builtin_type)
|
|
|
|
{
|
2016-12-31 00:15:52 +00:00
|
|
|
const GtkCssValue *shadows_value, *transform_value, *filter_value;
|
2016-12-12 23:11:06 +00:00
|
|
|
graphene_matrix_t transform_matrix;
|
|
|
|
GtkCssImage *image;
|
2017-10-28 20:10:46 +00:00
|
|
|
gboolean has_shadow;
|
2016-11-16 19:51:53 +00:00
|
|
|
|
|
|
|
g_return_if_fail (GTK_IS_CSS_STYLE (style));
|
|
|
|
g_return_if_fail (snapshot != NULL);
|
|
|
|
|
2017-10-09 15:38:54 +00:00
|
|
|
if (width == 0.0 || height == 0.0)
|
|
|
|
return;
|
|
|
|
|
2016-11-16 19:51:53 +00:00
|
|
|
image = _gtk_css_image_value_get_image (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_SOURCE));
|
|
|
|
if (image == NULL)
|
|
|
|
return;
|
|
|
|
|
2016-12-18 23:45:35 +00:00
|
|
|
shadows_value = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_SHADOW);
|
2016-12-31 00:15:52 +00:00
|
|
|
transform_value = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_TRANSFORM);
|
|
|
|
filter_value = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_FILTER);
|
2016-11-16 19:51:53 +00:00
|
|
|
|
2016-12-31 00:15:52 +00:00
|
|
|
if (!gtk_css_transform_value_get_matrix (transform_value, &transform_matrix))
|
2016-11-16 19:51:53 +00:00
|
|
|
return;
|
|
|
|
|
2018-04-24 01:17:23 +00:00
|
|
|
gtk_snapshot_push_debug (snapshot, "CSS Icon @ %gx%g", width, height);
|
|
|
|
|
2016-12-31 00:15:52 +00:00
|
|
|
gtk_css_filter_value_push_snapshot (filter_value, snapshot);
|
|
|
|
|
2017-10-28 20:10:46 +00:00
|
|
|
has_shadow = gtk_css_shadows_value_push_snapshot (shadows_value, snapshot);
|
2016-11-16 19:51:53 +00:00
|
|
|
|
2016-12-12 23:11:06 +00:00
|
|
|
if (graphene_matrix_is_identity (&transform_matrix))
|
|
|
|
{
|
|
|
|
gtk_css_image_builtin_snapshot (image, snapshot, width, height, builtin_type);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
graphene_matrix_t m1, m2, m3;
|
|
|
|
|
|
|
|
/* XXX: Implement -gtk-icon-transform-origin instead of hardcoding "50% 50%" here */
|
2016-12-13 08:40:24 +00:00
|
|
|
graphene_matrix_init_translate (&m1, &GRAPHENE_POINT3D_INIT (width / 2.0, height / 2.0, 0));
|
2016-12-12 23:11:06 +00:00
|
|
|
graphene_matrix_multiply (&transform_matrix, &m1, &m3);
|
2016-12-13 08:40:24 +00:00
|
|
|
graphene_matrix_init_translate (&m2, &GRAPHENE_POINT3D_INIT (- width / 2.0, - height / 2.0, 0));
|
2016-12-12 23:11:06 +00:00
|
|
|
graphene_matrix_multiply (&m2, &m3, &m1);
|
|
|
|
|
2018-04-24 01:17:23 +00:00
|
|
|
gtk_snapshot_push_transform (snapshot, &m1);
|
2016-12-13 08:40:24 +00:00
|
|
|
|
2016-12-13 01:33:15 +00:00
|
|
|
gtk_css_image_builtin_snapshot (image, snapshot, width, height, builtin_type);
|
2016-12-13 08:40:24 +00:00
|
|
|
|
2017-01-12 23:39:59 +00:00
|
|
|
gtk_snapshot_pop (snapshot);
|
2016-12-12 23:11:06 +00:00
|
|
|
}
|
2016-12-18 23:45:35 +00:00
|
|
|
|
2017-10-28 20:10:46 +00:00
|
|
|
if (has_shadow)
|
2017-09-30 11:11:51 +00:00
|
|
|
gtk_snapshot_pop (snapshot);
|
2017-10-28 20:10:46 +00:00
|
|
|
|
2016-12-31 00:15:52 +00:00
|
|
|
gtk_css_filter_value_pop_snapshot (filter_value, snapshot);
|
2018-04-24 01:17:23 +00:00
|
|
|
|
|
|
|
gtk_snapshot_pop (snapshot);
|
2016-11-16 19:51:53 +00:00
|
|
|
}
|
|
|
|
|
2016-10-15 20:29:45 +00:00
|
|
|
static gboolean
|
2015-01-20 04:54:45 +00:00
|
|
|
get_surface_extents (cairo_surface_t *surface,
|
|
|
|
GdkRectangle *out_extents)
|
|
|
|
{
|
|
|
|
cairo_t *cr;
|
|
|
|
gboolean result;
|
|
|
|
|
|
|
|
cr = cairo_create (surface);
|
|
|
|
result = gdk_cairo_get_clip_rectangle (cr, out_extents);
|
|
|
|
cairo_destroy (cr);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2015-01-20 04:21:15 +00:00
|
|
|
void
|
|
|
|
gtk_css_style_render_icon_surface (GtkCssStyle *style,
|
|
|
|
cairo_t *cr,
|
|
|
|
cairo_surface_t *surface,
|
|
|
|
double x,
|
|
|
|
double y)
|
|
|
|
{
|
2015-01-20 04:54:45 +00:00
|
|
|
const GtkCssValue *shadows;
|
2016-11-18 15:01:56 +00:00
|
|
|
graphene_matrix_t graphene_matrix;
|
2015-12-14 01:33:21 +00:00
|
|
|
cairo_matrix_t matrix, transform_matrix, saved_matrix;
|
2015-01-20 04:54:45 +00:00
|
|
|
GdkRectangle extents;
|
|
|
|
|
2015-01-20 04:21:15 +00:00
|
|
|
g_return_if_fail (GTK_IS_CSS_STYLE (style));
|
|
|
|
g_return_if_fail (cr != NULL);
|
|
|
|
g_return_if_fail (surface != NULL);
|
|
|
|
|
2015-01-20 04:54:45 +00:00
|
|
|
shadows = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_SHADOW);
|
|
|
|
|
|
|
|
if (!get_surface_extents (surface, &extents))
|
|
|
|
{
|
|
|
|
/* weird infinite surface, no special magic for you */
|
|
|
|
cairo_set_source_surface (cr, surface, x, y);
|
|
|
|
_gtk_css_shadows_value_paint_icon (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_SHADOW), cr);
|
|
|
|
cairo_paint (cr);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2015-12-14 01:33:21 +00:00
|
|
|
cairo_get_matrix (cr, &saved_matrix);
|
2015-01-20 04:54:45 +00:00
|
|
|
cairo_translate (cr, x + extents.x, y + extents.y);
|
2015-01-20 04:21:15 +00:00
|
|
|
|
2016-11-18 15:01:56 +00:00
|
|
|
if (gtk_css_transform_value_get_matrix (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_TRANSFORM), &graphene_matrix) &&
|
|
|
|
graphene_matrix_is_2d (&graphene_matrix))
|
2015-01-20 04:54:45 +00:00
|
|
|
{
|
|
|
|
cairo_pattern_t *pattern;
|
2015-01-20 04:21:15 +00:00
|
|
|
|
2016-11-18 15:01:56 +00:00
|
|
|
graphene_matrix_to_2d (&graphene_matrix,
|
|
|
|
&transform_matrix.xx, &transform_matrix.yx,
|
|
|
|
&transform_matrix.xy, &transform_matrix.yy,
|
|
|
|
&transform_matrix.x0, &transform_matrix.y0);
|
2015-01-20 04:54:45 +00:00
|
|
|
/* XXX: Implement -gtk-icon-transform-origin instead of hardcoding "50% 50%" here */
|
|
|
|
cairo_matrix_init_translate (&matrix, extents.width / 2, extents.height / 2);
|
|
|
|
cairo_matrix_multiply (&matrix, &transform_matrix, &matrix);
|
|
|
|
cairo_matrix_translate (&matrix, - extents.width / 2, - extents.height / 2);
|
|
|
|
if (cairo_matrix_invert (&matrix) != CAIRO_STATUS_SUCCESS)
|
|
|
|
{
|
|
|
|
g_assert_not_reached ();
|
|
|
|
}
|
|
|
|
cairo_matrix_translate (&matrix, extents.x, extents.y);
|
|
|
|
|
|
|
|
pattern = cairo_pattern_create_for_surface (surface);
|
|
|
|
cairo_pattern_set_matrix (pattern, &matrix);
|
|
|
|
cairo_set_source (cr, pattern);
|
|
|
|
cairo_pattern_destroy (pattern);
|
|
|
|
|
|
|
|
_gtk_css_shadows_value_paint_icon (shadows, cr);
|
|
|
|
cairo_paint (cr);
|
|
|
|
}
|
2015-12-14 01:33:21 +00:00
|
|
|
|
|
|
|
cairo_set_matrix (cr, &saved_matrix);
|
2015-01-20 04:21:15 +00:00
|
|
|
}
|
|
|
|
|
2015-12-16 01:15:20 +00:00
|
|
|
void
|
|
|
|
gtk_css_style_render_icon_get_extents (GtkCssStyle *style,
|
|
|
|
GdkRectangle *extents,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gint width,
|
|
|
|
gint height)
|
|
|
|
{
|
2016-11-18 15:01:56 +00:00
|
|
|
graphene_matrix_t transform_matrix, translate_matrix, matrix;
|
|
|
|
graphene_rect_t bounds;
|
2015-12-16 01:15:20 +00:00
|
|
|
GtkBorder border;
|
|
|
|
|
|
|
|
g_return_if_fail (GTK_IS_CSS_STYLE (style));
|
|
|
|
g_return_if_fail (extents != NULL);
|
|
|
|
|
|
|
|
extents->x = x;
|
|
|
|
extents->y = y;
|
|
|
|
extents->width = width;
|
|
|
|
extents->height = height;
|
|
|
|
|
2016-11-18 15:01:56 +00:00
|
|
|
if (!gtk_css_transform_value_get_matrix (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_TRANSFORM), &transform_matrix))
|
2015-12-16 01:15:20 +00:00
|
|
|
return;
|
2016-11-18 15:01:56 +00:00
|
|
|
|
2016-11-21 16:21:38 +00:00
|
|
|
graphene_matrix_init_translate (&translate_matrix, &GRAPHENE_POINT3D_INIT(x + width / 2.0, y + height / 2.0, 0));
|
2016-11-19 02:15:51 +00:00
|
|
|
graphene_matrix_multiply (&transform_matrix, &translate_matrix, &matrix);
|
2016-11-18 15:01:56 +00:00
|
|
|
graphene_rect_init (&bounds,
|
|
|
|
- width / 2.0, - height / 2.0,
|
|
|
|
width, height);
|
2015-12-16 01:15:20 +00:00
|
|
|
/* need to round to full pixels */
|
2016-11-18 15:01:56 +00:00
|
|
|
graphene_matrix_transform_bounds (&matrix, &bounds, &bounds);
|
2015-12-16 01:15:20 +00:00
|
|
|
|
|
|
|
_gtk_css_shadows_value_get_extents (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_SHADOW), &border);
|
|
|
|
|
2016-11-18 15:01:56 +00:00
|
|
|
extents->x = floorf (bounds.origin.x) - border.left;
|
|
|
|
extents->y = floorf (bounds.origin.y) - border.top;
|
2016-11-19 02:15:51 +00:00
|
|
|
extents->width = ceilf (bounds.origin.x + bounds.size.width) - extents->x + border.right;
|
|
|
|
extents->height = ceilf (bounds.origin.y + bounds.size.height) - extents->y + border.bottom;
|
2015-12-16 01:15:20 +00:00
|
|
|
}
|
|
|
|
|
2016-11-15 05:19:16 +00:00
|
|
|
void
|
2018-02-16 08:09:35 +00:00
|
|
|
gtk_css_style_snapshot_icon_paintable (GtkCssStyle *style,
|
|
|
|
GtkSnapshot *snapshot,
|
|
|
|
GdkPaintable *paintable,
|
|
|
|
double width,
|
|
|
|
double height,
|
|
|
|
gboolean recolor)
|
2016-11-15 05:19:16 +00:00
|
|
|
{
|
2016-12-31 00:15:52 +00:00
|
|
|
const GtkCssValue *shadows_value, *transform_value, *filter_value;
|
2016-12-12 23:11:06 +00:00
|
|
|
graphene_matrix_t transform_matrix;
|
2017-10-28 20:10:46 +00:00
|
|
|
gboolean has_shadow;
|
2016-11-15 05:19:16 +00:00
|
|
|
|
|
|
|
g_return_if_fail (GTK_IS_CSS_STYLE (style));
|
|
|
|
g_return_if_fail (snapshot != NULL);
|
2018-02-16 08:09:35 +00:00
|
|
|
g_return_if_fail (GDK_IS_PAINTABLE (paintable));
|
|
|
|
g_return_if_fail (width > 0);
|
|
|
|
g_return_if_fail (height > 0);
|
2016-11-15 05:19:16 +00:00
|
|
|
|
2016-12-18 23:45:35 +00:00
|
|
|
shadows_value = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_SHADOW);
|
2016-12-31 00:15:52 +00:00
|
|
|
transform_value = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_TRANSFORM);
|
|
|
|
filter_value = gtk_css_style_get_value (style, GTK_CSS_PROPERTY_ICON_FILTER);
|
2016-11-15 05:19:16 +00:00
|
|
|
|
2016-12-31 00:15:52 +00:00
|
|
|
if (!gtk_css_transform_value_get_matrix (transform_value, &transform_matrix))
|
2016-11-15 05:19:16 +00:00
|
|
|
return;
|
|
|
|
|
2016-12-31 00:15:52 +00:00
|
|
|
gtk_css_filter_value_push_snapshot (filter_value, snapshot);
|
|
|
|
|
2017-10-28 20:10:46 +00:00
|
|
|
has_shadow = gtk_css_shadows_value_push_snapshot (shadows_value, snapshot);
|
2016-11-15 05:19:16 +00:00
|
|
|
|
2017-11-09 03:21:42 +00:00
|
|
|
if (recolor)
|
|
|
|
{
|
|
|
|
graphene_matrix_t color_matrix;
|
|
|
|
graphene_vec4_t color_offset;
|
|
|
|
GdkRGBA fg, sc, wc, ec;
|
|
|
|
|
|
|
|
gtk_icon_theme_lookup_symbolic_colors (style, &fg, &sc, &wc, &ec);
|
|
|
|
|
|
|
|
graphene_matrix_init_from_float (&color_matrix, (float[16]) {
|
|
|
|
sc.red - fg.red, sc.green - fg.green, sc.blue - fg.blue, 0,
|
|
|
|
wc.red - fg.red, wc.green - fg.green, wc.blue - fg.blue, 0,
|
|
|
|
ec.red - fg.red, ec.green - fg.green, ec.blue - fg.blue, 0,
|
|
|
|
0, 0, 0, fg.alpha
|
|
|
|
});
|
|
|
|
graphene_vec4_init (&color_offset, fg.red, fg.green, fg.blue, 0);
|
|
|
|
|
2018-04-24 01:17:23 +00:00
|
|
|
gtk_snapshot_push_color_matrix (snapshot, &color_matrix, &color_offset);
|
2017-11-09 03:21:42 +00:00
|
|
|
}
|
2017-10-23 09:42:23 +00:00
|
|
|
|
2016-12-12 23:11:06 +00:00
|
|
|
if (graphene_matrix_is_identity (&transform_matrix))
|
|
|
|
{
|
2018-02-16 08:09:35 +00:00
|
|
|
gdk_paintable_snapshot (paintable, snapshot, width, height);
|
2016-12-12 23:11:06 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2017-10-11 07:24:35 +00:00
|
|
|
graphene_matrix_t m1, m2, m3;
|
2016-12-12 23:11:06 +00:00
|
|
|
|
|
|
|
/* XXX: Implement -gtk-icon-transform-origin instead of hardcoding "50% 50%" here */
|
2017-10-11 07:24:35 +00:00
|
|
|
graphene_matrix_init_translate (&m1, &GRAPHENE_POINT3D_INIT (width / 2.0, height / 2.0, 0));
|
|
|
|
graphene_matrix_multiply (&transform_matrix, &m1, &m3);
|
|
|
|
graphene_matrix_init_translate (&m2, &GRAPHENE_POINT3D_INIT (- width / 2.0, - height / 2.0, 0));
|
|
|
|
graphene_matrix_multiply (&m2, &m3, &m1);
|
2016-12-12 23:11:06 +00:00
|
|
|
|
2018-04-24 01:17:23 +00:00
|
|
|
gtk_snapshot_push_transform (snapshot, &m1);
|
2016-12-12 23:11:06 +00:00
|
|
|
|
2018-02-16 08:09:35 +00:00
|
|
|
gdk_paintable_snapshot (paintable, snapshot, width, height);
|
2016-12-12 23:11:06 +00:00
|
|
|
|
2017-01-12 23:39:59 +00:00
|
|
|
gtk_snapshot_pop (snapshot);
|
2016-12-12 23:11:06 +00:00
|
|
|
}
|
2016-12-18 23:45:35 +00:00
|
|
|
|
2017-11-09 03:21:42 +00:00
|
|
|
if (recolor)
|
2017-10-23 09:42:23 +00:00
|
|
|
gtk_snapshot_pop (snapshot);
|
|
|
|
|
2017-10-28 20:10:46 +00:00
|
|
|
if (has_shadow)
|
2017-09-30 11:11:51 +00:00
|
|
|
gtk_snapshot_pop (snapshot);
|
2017-10-28 20:10:46 +00:00
|
|
|
|
2016-12-31 00:15:52 +00:00
|
|
|
gtk_css_filter_value_pop_snapshot (filter_value, snapshot);
|
2016-11-15 05:19:16 +00:00
|
|
|
}
|