[DllImport("libgtk-win32-2.0-0.dll")]
unsafe static extern void gtk_icon_set_get_sizes (
IntPtr raw, out int *pointer_to_enum, out int n_sizes);
[DllImport("libglib-2.0-0.dll")]
unsafe static extern void g_free (int *mem);
/// Sizes Property
/// To be completed
public Gtk.IconSize [] Sizes {
get {
Gtk.IconSize [] retval;
unsafe {
int length;
int *pointer_to_enum;
gtk_icon_set_get_sizes (Handle, out pointer_to_enum, out length);
retval = new Gtk.IconSize [length];
for (int i = 0; i < length; i++)
retval [i] = (Gtk.IconSize) pointer_to_enum [i];
g_free (pointer_to_enum);
}
return retval;
}
}