diff options
author | Benjamin Otte <otte@redhat.com> | 2016-05-03 12:57:50 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-05-03 12:59:13 +0200 |
commit | a72c4576b2815c96b55164ebe27ad62f40108da7 (patch) | |
tree | eb9a11a87ed27ee0cd999e901a840e991cc5d737 /gtk/gtkrender.c | |
parent | b049b3de25241d39e8c096d56a538d414632dd27 (diff) | |
download | gtk+-a72c4576b2815c96b55164ebe27ad62f40108da7.tar.gz |
cssimagebuiltin: Remove icons that don't draw anything anymore
Diffstat (limited to 'gtk/gtkrender.c')
-rw-r--r-- | gtk/gtkrender.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkrender.c b/gtk/gtkrender.c index 42cd58f7f2..1c515c17ab 100644 --- a/gtk/gtkrender.c +++ b/gtk/gtkrender.c @@ -52,9 +52,9 @@ gtk_do_render_check (GtkStyleContext *context, if (state & GTK_STATE_FLAG_INCONSISTENT) image_type = GTK_CSS_IMAGE_BUILTIN_CHECK_INCONSISTENT; else if (state & GTK_STATE_FLAG_CHECKED) - image_type = GTK_CSS_IMAGE_BUILTIN_CHECK_CHECKED; - else image_type = GTK_CSS_IMAGE_BUILTIN_CHECK; + else + image_type = GTK_CSS_IMAGE_BUILTIN_NONE; gtk_css_style_render_icon (gtk_style_context_lookup_style (context), cr, x, y, width, height, image_type); } @@ -117,9 +117,9 @@ gtk_do_render_option (GtkStyleContext *context, if (state & GTK_STATE_FLAG_INCONSISTENT) image_type = GTK_CSS_IMAGE_BUILTIN_OPTION_INCONSISTENT; else if (state & GTK_STATE_FLAG_CHECKED) - image_type = GTK_CSS_IMAGE_BUILTIN_OPTION_CHECKED; - else image_type = GTK_CSS_IMAGE_BUILTIN_OPTION; + else + image_type = GTK_CSS_IMAGE_BUILTIN_NONE; gtk_css_style_render_icon (gtk_style_context_lookup_style (context), cr, x, y, width, height, image_type); } |