Icon


Object Hierarchy:

GLib.Icon GLib.Icon GLib.Icon GLib.Object GLib.Object GLib.Object->GLib.Icon

Description:

[ CCode ( type_id = "g_icon_get_type ()" ) ]
public interface Icon : Object

Example: FileInfo, async:

public static int main (string[] args) {
if (args.length != 2) {
print ("%s FILE\n", args[0]);
return 0;
}

MainLoop loop = new MainLoop ();

File file = File.new_for_commandline_arg (args[1]);
file.query_info_async.begin ("standard::icon", 0, Priority.DEFAULT, null, (obj, res) => {
try {
FileInfo info = file.query_info_async.end (res);
Icon icon = info.get_icon ();
print ("%s\n", icon.to_string ());
} catch (Error e) {
print ("Error: %s\n", e.message);
}

loop.quit ();
});

loop.run ();
return 0;
}

valac --pkg gio-2.0 GLib.File.query_info_async.vala

All known implementing classes:
All known sub-interfaces:

Namespace: GLib
Package: gio-2.0

Content:

Static methods:

Methods:

Inherited Members: