mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-24 00:35:36 +00:00
* 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
This commit is contained in:
parent
c3ff06ea8d
commit
573ef76a41
|
@ -1,5 +1,11 @@
|
|||
2003-07-15 Duncan Mak <duncan@ximian.com>
|
||||
|
||||
* 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.
|
||||
|
||||
* sources/Gtk.metadata
|
||||
(GtkIconSet): hide the GetSizes method.
|
||||
(GtkTextBuffer): new overrides
|
||||
|
|
28
gtk/IconSet.custom
Normal file
28
gtk/IconSet.custom
Normal file
|
@ -0,0 +1,28 @@
|
|||
[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;
|
||||
}
|
||||
}
|
|
@ -12,6 +12,13 @@ DOWNLOADS = \
|
|||
http://unc.dl.sourceforge.net/sourceforge/gstreamer/gstreamer-0.4.2.tar.gz \
|
||||
http://ftp.gnome.org/pub/gnome/sources/librsvg/2.0/librsvg-2.0.1.tar.gz \
|
||||
|
||||
GTKHTML_SOURCES = \
|
||||
gtkhtml/src/gtkhtml.c \
|
||||
gtkhtml/src/gtkhtml.h \
|
||||
gtkhtml/src/gtkhtml-types.h \
|
||||
gtkhtml/src/gtkhtml-enums.h \
|
||||
gtkhtml/src/gtkhtml-stream.c \
|
||||
gtkhtml/src/gtkhtml-stream.h \
|
||||
|
||||
all:
|
||||
PERLLIB=../parser PATH=../parser:$$PATH ../parser/gapi.pl gtk-sharp.sources ../api
|
||||
|
@ -22,12 +29,7 @@ get-source-code:
|
|||
done;
|
||||
|
||||
export CVS_PASSWORD=""
|
||||
cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co gtkhtml/src/gtkhtml.c
|
||||
cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co gtkhtml/src/gtkhtml.h
|
||||
cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co gtkhtml/src/gtkhtml-types.h
|
||||
cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co gtkhtml/src/gtkhtml-enums.h
|
||||
cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co gtkhtml/src/gtkhtml-stream.c
|
||||
cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co gtkhtml/src/gtkhtml-stream.h
|
||||
cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co $(GTKHTML_SOURCES)
|
||||
patch -p0 < gtkhtml-font-style-enum.patch
|
||||
|
||||
ln -f -s ../gdk/gdkpixbuf-drawable.c gtk+-2.2.2/gdk-pixbuf/gdkpixbuf-drawable.c
|
||||
|
|
Loading…
Reference in a new issue