[gtk/wip/baedert/for-master] GtkCssImageUrl: Implement is_computed()



commit 0053c741099c8331d1b58aff090508bc38138476
Author: Timm Bäder <mail baedert org>
Date:   Fri Jan 24 16:02:34 2020 +0100

    GtkCssImageUrl: Implement is_computed()

 gtk/gtkcssimageurl.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/gtk/gtkcssimageurl.c b/gtk/gtkcssimageurl.c
index 398e9c3705..3820b5c966 100644
--- a/gtk/gtkcssimageurl.c
+++ b/gtk/gtkcssimageurl.c
@@ -161,6 +161,12 @@ gtk_css_image_url_is_invalid (GtkCssImage *image)
   return gtk_css_image_is_invalid (gtk_css_image_url_load_image (url, NULL));
 }
 
+static gboolean
+gtk_css_image_url_is_computed (GtkCssImage *image)
+{
+  return TRUE;
+}
+
 static gboolean
 gtk_css_image_url_parse (GtkCssImage  *image,
                          GtkCssParser *parser)
@@ -249,6 +255,7 @@ _gtk_css_image_url_class_init (GtkCssImageUrlClass *klass)
   image_class->print = gtk_css_image_url_print;
   image_class->equal = gtk_css_image_url_equal;
   image_class->is_invalid = gtk_css_image_url_is_invalid;
+  image_class->is_computed = gtk_css_image_url_is_computed;
 
   object_class->dispose = gtk_css_image_url_dispose;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]