mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 13:15:39 +00:00
573ef76a41
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
29 lines
1.2 KiB
Plaintext
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;
|
|
}
|
|
}
|