[gtk+/border-image: 4/6] border-image: ensure image->resolved is set when resolving the gradient
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/border-image: 4/6] border-image: ensure image->resolved is set when resolving the gradient
- Date: Wed, 1 Jun 2011 17:39:49 +0000 (UTC)
commit e3fc3a362c17807d4c4bc45729f5da854e6cbb38
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]