Add GtkFileFilter properties

This commit is contained in:
James Westman 2021-11-12 09:23:25 -06:00
parent b776163cd7
commit ebfa72d94f
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
13 changed files with 141 additions and 39 deletions

View file

@ -1 +1 @@
3,25,17,Namespace Gtk does not contain a class called NotARealClass
3,29,13,Namespace Gtk does not contain a class called NotARealClass

View file

@ -1 +1 @@
3,25,14,Gtk.Orientable is not a class
3,29,10,Gtk.Orientable is not a class

View file

@ -1 +1 @@
3,25,21,Namespace Adw was not imported
3,25,3,Namespace Adw was not imported

View file

@ -8,3 +8,4 @@ Gtk.Widget {
}
}
Gtk.Label my_label {}

View file

@ -0,0 +1,8 @@
using Gtk 4.0;
FileFilter {
name: "File Filter Name";
mime-types: "text/plain", "image/ *";
patterns: "*.txt";
suffixes: "png";
}

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkFileFilter">
<property name="name">File Filter Name</property>
<mime-types>
<mime-type>text/plain</mime-type>
<mime-type>image/ *</mime-type>
</mime-types>
<patterns>
<pattern>*.txt</pattern>
</patterns>
<suffixes>
<suffix>png</suffix>
</suffixes>
</object>
</interface>

View file

@ -95,6 +95,7 @@ class TestSamples(unittest.TestCase):
self.assert_sample("accessibility")
self.assert_sample("binding")
self.assert_sample("child_type")
self.assert_sample("file_filter")
self.assert_sample("flags")
self.assert_sample("id_prop")
self.assert_sample("layout")