[gtk+] border-image: ensure image->resolved is set when resolving the gradient
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] border-image: ensure image->resolved is set when resolving the gradient
- Date: Thu, 9 Jun 2011 04:24:17 +0000 (UTC)
commit 4cfccde6dac462e5a65a80848f2a5351e5c575c7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri May 27 18:13:35 2011 -0400
border-image: ensure image->resolved is set when resolving the gradient
https://bugzilla.gnome.org/show_bug.cgi?id=651194
gtk/gtkborderimage.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkborderimage.c b/gtk/gtkborderimage.c
index 80ec800..939d45f 100644
--- a/gtk/gtkborderimage.c
+++ b/gtk/gtkborderimage.c
@@ -282,7 +282,10 @@ _gtk_border_image_resolve (GtkBorderImage *image,
if (image->resolved)
return _gtk_border_image_ref (image);
- if (!gtk_gradient_resolve (image->source_gradient, props, &pattern))
+ image->resolved =
+ gtk_gradient_resolve (image->source_gradient, props, &pattern);
+
+ if (!image->resolved)
return NULL;
resolved_image = _gtk_border_image_new (pattern, &image->slice, &image->repeat);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]