* 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:
Duncan Mak 2003-07-16 03:29:47 +00:00
parent c3ff06ea8d
commit 573ef76a41
3 changed files with 42 additions and 6 deletions

View file

@ -1,5 +1,11 @@
2003-07-15 Duncan Mak <duncan@ximian.com> 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 * sources/Gtk.metadata
(GtkIconSet): hide the GetSizes method. (GtkIconSet): hide the GetSizes method.
(GtkTextBuffer): new overrides (GtkTextBuffer): new overrides

28
gtk/IconSet.custom Normal file
View 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;
}
}

View file

@ -12,6 +12,13 @@ DOWNLOADS = \
http://unc.dl.sourceforge.net/sourceforge/gstreamer/gstreamer-0.4.2.tar.gz \ 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 \ 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: all:
PERLLIB=../parser PATH=../parser:$$PATH ../parser/gapi.pl gtk-sharp.sources ../api PERLLIB=../parser PATH=../parser:$$PATH ../parser/gapi.pl gtk-sharp.sources ../api
@ -22,12 +29,7 @@ get-source-code:
done; done;
export CVS_PASSWORD="" 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_SOURCES)
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
patch -p0 < gtkhtml-font-style-enum.patch patch -p0 < gtkhtml-font-style-enum.patch
ln -f -s ../gdk/gdkpixbuf-drawable.c gtk+-2.2.2/gdk-pixbuf/gdkpixbuf-drawable.c ln -f -s ../gdk/gdkpixbuf-drawable.c gtk+-2.2.2/gdk-pixbuf/gdkpixbuf-drawable.c