GObject.Object
GObject.InitiallyUnowned
Gtk.FileFilter
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkFileFilter |
Class : | FileFilter |
Implements: | Gtk.Buildable |
Extends: | GObject.InitiallyUnowned |
Properties | Defined By | |
---|---|---|
g_type_instance : GObject.TypeInstance
|
GObject.InitiallyUnowned | |
qdata : GLib.Data
read only
|
GObject.InitiallyUnowned | |
ref_count : guint32
read only
|
GObject.InitiallyUnowned |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.FileFilter
(Object properties)
Create a new Gtk.FileFilter
Create a new Gtk.FileFilter
|
||
Adds a child to buildable.
Adds a child to buildable. type is an optional string
describing how the child should be added.
|
Gtk.Buildable | |
Adds rule to a filter that allows files based on a custom callback
function.
Adds rule to a filter that allows files based on a custom callback
function. The bitfield needed which is passed in provides information about what sorts of information that the filter function needs; this allows GTK+ to avoid retrieving expensive information when it isn't needed by the filter.
|
Gtk.FileFilter | |
add_mime_type
(String mime_type)
:
none
Adds a rule allowing a given mime type to filter.
Adds a rule allowing a given mime type to filter.
|
Gtk.FileFilter | |
add_pattern
(String pattern)
:
none
Adds a rule allowing a shell style glob to a filter.
Adds a rule allowing a shell style glob to a filter.
|
Gtk.FileFilter | |
add_pixbuf_formats
()
:
none
Adds a rule allowing image files in the formats supported
by GdkPixbuf.
Adds a rule allowing image files in the formats supported
by GdkPixbuf.
|
Gtk.FileFilter | |
Constructs a child of buildable with the name name.
Constructs a child of buildable with the name name.
GtkBuilder calls this function if a "constructor" has been specified in the UI definition.
|
Gtk.Buildable | |
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
This is similar to gtk_buildable_parser_finished() but is
called once for each custom tag handled by the buildable.
|
Gtk.Buildable | |
This is called at the end of each custom element handled by
the buildable.
This is called at the end of each custom element handled by
the buildable.
|
Gtk.Buildable | |
This is called for each unknown element under <child>.
This is called for each unknown element under <child>.
if it doesn't.
|
Gtk.Buildable | |
filter
(FileFilterInfo filter_info)
:
gboolean
Tests whether a file should be displayed according to filter.
Tests whether a file should be displayed according to filter.
The GtkFileFilterInfo structure filter_info should include the fields returned from gtk_file_filter_get_needed(). This function will not typically be used by applications; it is intended principally for use in the implementation of GtkFileChooser.
|
Gtk.FileFilter | |
Get the internal child called childname of the buildable object.
Get the internal child called childname of the buildable object.
|
Gtk.Buildable | |
get_name
()
:
String
Gets the human-readable name for the filter.
Gets the human-readable name for the filter. See gtk_file_filter_set_name().
or NULL. This value is owned by GTK+ and must not be modified or freed.
|
Gtk.FileFilter | |
get_needed
()
:
Gtk.FileFilterFlags
Gets the fields that need to be filled in for the structure
passed to gtk_file_filter_filter() This function will not typically be used by applications; it is intended principally for use in the implementation of GtkFileChooser.
Gets the fields that need to be filled in for the structure
passed to gtk_file_filter_filter() This function will not typically be used by applications; it is intended principally for use in the implementation of GtkFileChooser. calling gtk_file_filter_filter()
|
Gtk.FileFilter | |
parser_finished
(Builder builder)
:
none
Called when the builder finishes the parsing of a
GtkBuilder UI definition.
Called when the builder finishes the parsing of a
GtkBuilder UI definition. Note that this will be called once for each time gtk_builder_add_from_file() or gtk_builder_add_from_string() is called on a builder.
|
Gtk.Buildable | |
Sets the property name name to value on the buildable object.
Sets the property name name to value on the buildable object.
|
Gtk.Buildable | |
set_name
(String name)
:
none
Sets the human-readable name of the filter; this is the string
that will be displayed in the file selector user interface if there is a selectable list of filters.
Sets the human-readable name of the filter; this is the string
that will be displayed in the file selector user interface if there is a selectable list of filters.
|
Gtk.FileFilter |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.FileChooser
Property |
filter : Gtk.FileFilter
|
Gtk.FileChooser
Method |
add_filter
(FileFilter filter)
:
none
Adds filter to the list of filters that the user can select between.
|
Gtk.FileChooser
Method |
get_filter
()
:
Gtk.FileFilter
Gets the current filter; see gtk_file_chooser_set_filter().
|
Gtk.FileChooser
Method |
remove_filter
(FileFilter filter)
:
none
Removes filter from the list of filters that the user can select between.
|
Gtk.FileChooser
Method |
set_filter
(FileFilter filter)
:
none
Sets the current filter; only the files that pass the
filter will be displayed. |