GtkSharp/gtk/IconSet.custom
Duncan Mak 573ef76a41 * sources/makefile (get-source-code): make it go a bit faster by
checking out all files in one go.

* gtk/IconSet.custom (Sizes): added proper binding to
gtk_icon_set_get_sizes (), this fixes bug #45835.

svn path=/trunk/gtk-sharp/; revision=16284
2003-07-16 03:29:47 +00:00

29 lines
1.2 KiB
Plaintext

[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);
/// <summary> Sizes Property </summary>
/// <remarks> To be completed </remarks>
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;
}
}