From 573ef76a41989abb893fd500090eba0eb3424af1 Mon Sep 17 00:00:00 2001 From: Duncan Mak Date: Wed, 16 Jul 2003 03:29:47 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ gtk/IconSet.custom | 28 ++++++++++++++++++++++++++++ sources/makefile | 14 ++++++++------ 3 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 gtk/IconSet.custom diff --git a/ChangeLog b/ChangeLog index 88c77e608..a57c49f03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2003-07-15 Duncan Mak + * 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 diff --git a/gtk/IconSet.custom b/gtk/IconSet.custom new file mode 100644 index 000000000..46700755f --- /dev/null +++ b/gtk/IconSet.custom @@ -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); + + /// 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; + } + } diff --git a/sources/makefile b/sources/makefile index c426c4642..bd41de67c 100644 --- a/sources/makefile +++ b/sources/makefile @@ -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