[gtk/wip/otte/color-profiles] widget-factory: Add tests for loading color profiles



commit 83c0c7228cbf9f93895445071eb246d3ccd4ad28
Author: Benjamin Otte <otte redhat com>
Date:   Tue Sep 28 04:06:02 2021 +0200

    widget-factory: Add tests for loading color profiles
    
    I figured out how to generate them, yay!

 demos/widget-factory/color-profile-check.jpeg     | Bin 0 -> 1862 bytes
 demos/widget-factory/color-profile-check.png      | Bin 0 -> 741 bytes
 demos/widget-factory/color-profile-check.tiff     | Bin 0 -> 1926 bytes
 demos/widget-factory/widget-factory.gresource.xml |   3 +
 demos/widget-factory/widget-factory.ui            |  84 +++++++++++++++++++++-
 5 files changed, 84 insertions(+), 3 deletions(-)
---
diff --git a/demos/widget-factory/color-profile-check.jpeg b/demos/widget-factory/color-profile-check.jpeg
new file mode 100644
index 0000000000..e5da8685d1
Binary files /dev/null and b/demos/widget-factory/color-profile-check.jpeg differ
diff --git a/demos/widget-factory/color-profile-check.png b/demos/widget-factory/color-profile-check.png
new file mode 100644
index 0000000000..e7a1dc4815
Binary files /dev/null and b/demos/widget-factory/color-profile-check.png differ
diff --git a/demos/widget-factory/color-profile-check.tiff b/demos/widget-factory/color-profile-check.tiff
new file mode 100644
index 0000000000..6583a01b9d
Binary files /dev/null and b/demos/widget-factory/color-profile-check.tiff differ
diff --git a/demos/widget-factory/widget-factory.gresource.xml 
b/demos/widget-factory/widget-factory.gresource.xml
index dca1b43e68..0db9306704 100644
--- a/demos/widget-factory/widget-factory.gresource.xml
+++ b/demos/widget-factory/widget-factory.gresource.xml
@@ -122,5 +122,8 @@
     <file>linear-gradient-monochrome.png</file>
     <file>srgb-gradient-color.png</file>
     <file>srgb-gradient-monochrome.png</file>
+    <file>color-profile-check.png</file>
+    <file>color-profile-check.jpeg</file>
+    <file>color-profile-check.tiff</file>
   </gresource>
 </gresources>
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index b2036c5b48..6bf727f305 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -1523,13 +1523,91 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
                               <object class="GtkNotebookPage">
                                 <property name="position">1</property>
                                 <property name="child">
-                                  <object class="GtkBox" id="box10">
-                                    <property name="orientation">vertical</property>
+                                  <object class="GtkGrid">
+                                    <property name="hexpand">0</property>
+                                    <property name="row-spacing">6</property>
+                                    <property name="column-spacing">6</property>
+                                    <property name="margin-start">6</property>
+                                    <property name="margin-end">6</property>
+                                    <property name="margin-top">6</property>
+                                    <property name="margin-bottom">6</property>
+                                    <property name="row-homogeneous">1</property>
+                                    <property name="valign">start</property>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label" translatable="yes">image loading</property>
+                                        <style>
+                                          <class name="caption-heading"/>
+                                        </style>
+                                        <layout>
+                                          <property name="column">0</property>
+                                          <property name="row">0</property>
+                                          <property name="column-span">2</property>
+                                        </layout>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkImage">
+                                        <property 
name="paintable">resource:///org/gtk/WidgetFactory4/color-profile-check.png</property>
+                                        <layout>
+                                          <property name="column">0</property>
+                                          <property name="row">1</property>
+                                        </layout>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label">PNG</property>
+                                        <property name="hexpand">1</property>
+                                        <layout>
+                                          <property name="column">1</property>
+                                          <property name="row">1</property>
+                                        </layout>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkImage">
+                                        <property 
name="paintable">resource:///org/gtk/WidgetFactory4/color-profile-check.jpeg</property>
+                                        <layout>
+                                          <property name="column">0</property>
+                                          <property name="row">2</property>
+                                        </layout>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label">JPEG</property>
+                                        <property name="hexpand">1</property>
+                                        <layout>
+                                          <property name="column">1</property>
+                                          <property name="row">2</property>
+                                        </layout>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkImage">
+                                        <property 
name="paintable">resource:///org/gtk/WidgetFactory4/color-profile-check.tiff</property>
+                                        <layout>
+                                          <property name="column">0</property>
+                                          <property name="row">3</property>
+                                        </layout>
+                                      </object>
+                                    </child>
+                                    <child>
+                                      <object class="GtkLabel">
+                                        <property name="label">TIFF</property>
+                                        <property name="hexpand">1</property>
+                                        <layout>
+                                          <property name="column">1</property>
+                                          <property name="row">3</property>
+                                        </layout>
+                                      </object>
+                                    </child>
                                   </object>
                                 </property>
                                 <property name="tab">
                                   <object class="GtkLabel" id="label9">
-                                    <property name="label" translatable="yes">page 2</property>
+                                    <property name="label" translatable="yes">Images</property>
                                   </object>
                                 </property>
                               </object>


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