[gtk+] css: Don't crash when printing gradients
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] css: Don't crash when printing gradients
- Date: Fri, 28 Sep 2012 16:29:31 +0000 (UTC)
commit 5c4fc16cd4e80072ab1eba4ae36e2e763c61a905
Author: Benjamin Otte <otte redhat com>
Date: Thu Sep 27 16:24:30 2012 +0200
css: Don't crash when printing gradients
... in the fallback code. Instead print a FIXME.
gtk/gtkcssstylefuncs.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssstylefuncs.c b/gtk/gtkcssstylefuncs.c
index 0320e0a..e893a2c 100644
--- a/gtk/gtkcssstylefuncs.c
+++ b/gtk/gtkcssstylefuncs.c
@@ -810,9 +810,11 @@ pattern_value_print (const GValue *value,
}
surface_print (surface, string);
break;
- case CAIRO_PATTERN_TYPE_SOLID:
case CAIRO_PATTERN_TYPE_LINEAR:
case CAIRO_PATTERN_TYPE_RADIAL:
+ g_string_append (string, "none /* FIXME: add support for printing gradients */");
+ break;
+ case CAIRO_PATTERN_TYPE_SOLID:
default:
g_assert_not_reached ();
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]