mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Add GtkFileFilter properties
This commit is contained in:
parent
b776163cd7
commit
ebfa72d94f
13 changed files with 141 additions and 39 deletions
|
@ -8,3 +8,4 @@ Gtk.Widget {
|
|||
}
|
||||
}
|
||||
Gtk.Label my_label {}
|
||||
|
||||
|
|
8
tests/samples/file_filter.blp
Normal file
8
tests/samples/file_filter.blp
Normal file
|
@ -0,0 +1,8 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
FileFilter {
|
||||
name: "File Filter Name";
|
||||
mime-types: "text/plain", "image/ *";
|
||||
patterns: "*.txt";
|
||||
suffixes: "png";
|
||||
}
|
17
tests/samples/file_filter.ui
Normal file
17
tests/samples/file_filter.ui
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue