From 6abcf29dfa03367277b3a9a38b14f83d07f06065 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Fri, 28 Jul 2006 15:39:10 +0000 Subject: [PATCH] 2006-07-27 Mike Kestner * bootstrap*: kill the 2.4/2.6/2.8 straps, they are on a branch now. update 2.10 strap for new apis. * sources/Makefile.am : parse 2.16 sources for gnome libs. * sources/gtk-sharp-2.10-sources.xml : ditto. * parser/gapi-parser.cs : explicitly use an indented XML writer. * gnomevfs/gnome-vfs-api-2.16.raw: regen * gnomevfs/Gnomevfs.metadata: some build fixes * gnome/gnome-api-2.16.raw: regen * gnome/Gnome.metadata: some build fixes * sample/PrintSample.cs: remove new Gtk/Gnome ambiguities. svn path=/trunk/gtk-sharp/; revision=63078 --- ChangeLog | 18 ++ bootstrap-2.10 | 9 +- bootstrap-2.4 | 14 - bootstrap-2.6 | 14 - bootstrap-2.8 | 14 - bootstrap-generic | 3 + configure.in.in | 6 +- gnome/Gnome.metadata | 1 + gnome/PanelApplet.custom | 1 + gnome/gnome-api-2.16.raw | 91 +++--- gnomevfs/Gnomevfs.metadata | 1 + gnomevfs/gnome-vfs-api-2.16.raw | 443 ++++++++++++++++++++++------- parser/gapi-parser.cs | 4 +- sample/PrintSample.cs | 8 +- sources/Makefile.am | 4 +- sources/gtk-sharp-2.10-sources.xml | 4 +- 16 files changed, 441 insertions(+), 194 deletions(-) delete mode 100755 bootstrap-2.4 delete mode 100755 bootstrap-2.6 delete mode 100755 bootstrap-2.8 diff --git a/ChangeLog b/ChangeLog index dbb697356..752b071e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,21 @@ +2006-07-27 Mike Kestner + + * bootstrap*: kill the 2.4/2.6/2.8 straps, they are on a + branch now. update 2.10 strap for new apis. + * sources/Makefile.am : parse 2.16 sources for gnome libs. + * sources/gtk-sharp-2.10-sources.xml : ditto. + * parser/gapi-parser.cs : explicitly use an indented XML writer. + * gnomevfs/gnome-vfs-api-2.16.raw: regen + * gnomevfs/Gnomevfs.metadata: some build fixes + * gnome/gnome-api-2.16.raw: regen + * gnome/Gnome.metadata: some build fixes + * sample/PrintSample.cs: remove new Gtk/Gnome ambiguities. + +2006-07-27 Mike Kestner + + * gnome/PanelApplet.custom : hold UIVerbs in SetupMenu so the + callback delegates don't get GC'd. + 2006-07-15 Mike Kestner * parser/gapi2xml.pl : regex fix needed for vfs 2.15.3 parse. diff --git a/bootstrap-2.10 b/bootstrap-2.10 index 19ac62804..594e175c0 100755 --- a/bootstrap-2.10 +++ b/bootstrap-2.10 @@ -4,11 +4,14 @@ GTK_SHARP_VERSION=2.9.0 ASSEMBLY_VERSION=2.10.0.0 POLICY_VERSIONS="2.4 2.6 2.8" -GTK_REQUIRED_VERSION=2.9.0 -GNOME_REQUIRED_VERSION=2.10.0 +GTK_REQUIRED_VERSION=2.10.0 +GNOME_REQUIRED_VERSION=2.15.0 +GNOMECANVAS_REQUIRED_VERSION=2.14.0 +GNOMEPANEL_REQUIRED_VERSION=2.14.0 +GNOMEPRINT_REQUIRED_VERSION=2.10.0 VERSIONCSDEFINES="-define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GTK_SHARP_2_10" VERSIONCFLAGS="-DGTK_SHARP_2_6 -DGTK_SHARP_2_8 -DGTK_SHARP_2_10" GTK_API_TAG=2.10 -GNOME_API_TAG=2.10 +GNOME_API_TAG=2.16 . ./bootstrap-generic "$@" diff --git a/bootstrap-2.4 b/bootstrap-2.4 deleted file mode 100755 index f75be7b1c..000000000 --- a/bootstrap-2.4 +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# Run this to set configure.in up for an API version. - -GTK_SHARP_VERSION=2.4.3 -ASSEMBLY_VERSION=2.4.0.0 -POLICY_VERSIONS= -GTK_REQUIRED_VERSION=2.4.0 -GNOME_REQUIRED_VERSION=2.6.0 -VERSIONCSDEFINES= -VERSIONCFLAGS= -GTK_API_TAG=2.4 -GNOME_API_TAG=2.6 - -. ./bootstrap-generic "$@" diff --git a/bootstrap-2.6 b/bootstrap-2.6 deleted file mode 100755 index a31507586..000000000 --- a/bootstrap-2.6 +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# Run this to set configure.in up for an API version. - -GTK_SHARP_VERSION=2.6.3 -ASSEMBLY_VERSION=2.6.0.0 -POLICY_VERSIONS=2.4 -GTK_REQUIRED_VERSION=2.6.0 -GNOME_REQUIRED_VERSION=2.10.0 -VERSIONCSDEFINES=-define:GTK_SHARP_2_6 -VERSIONCFLAGS=-DGTK_SHARP_2_6 -GTK_API_TAG=2.6 -GNOME_API_TAG=2.10 - -. ./bootstrap-generic "$@" diff --git a/bootstrap-2.8 b/bootstrap-2.8 deleted file mode 100755 index 7faee36ee..000000000 --- a/bootstrap-2.8 +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# Run this to set configure.in up for an API version. - -GTK_SHARP_VERSION=2.8.3 -ASSEMBLY_VERSION=2.8.0.0 -POLICY_VERSIONS="2.4 2.6" -GTK_REQUIRED_VERSION=2.8.0 -GNOME_REQUIRED_VERSION=2.10.0 -VERSIONCSDEFINES="-define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8" -VERSIONCFLAGS="-DGTK_SHARP_2_6 -DGTK_SHARP_2_8" -GTK_API_TAG=2.8 -GNOME_API_TAG=2.10 - -. ./bootstrap-generic "$@" diff --git a/bootstrap-generic b/bootstrap-generic index 84fb6b6bc..982520b27 100755 --- a/bootstrap-generic +++ b/bootstrap-generic @@ -17,6 +17,9 @@ set -x sed -e "s/@GTK_SHARP_VERSION@/$GTK_SHARP_VERSION/" \ -e "s/@GTK_REQUIRED_VERSION@/$GTK_REQUIRED_VERSION/" \ -e "s/@GNOME_REQUIRED_VERSION@/$GNOME_REQUIRED_VERSION/" \ + -e "s/@GNOMECANVAS_REQUIRED_VERSION@/$GNOMECANVAS_REQUIRED_VERSION/" \ + -e "s/@GNOMEPANEL_REQUIRED_VERSION@/$GNOMEPANEL_REQUIRED_VERSION/" \ + -e "s/@GNOMEPRINT_REQUIRED_VERSION@/$GNOMEPRINT_REQUIRED_VERSION/" \ -e "s/@VERSIONCSDEFINES@/$VERSIONCSDEFINES/" \ -e "s/@VERSIONCFLAGS@/$VERSIONCFLAGS/" \ -e "s/@POLICY_VERSIONS@/$POLICY_VERSIONS/" \ diff --git a/configure.in.in b/configure.in.in index 520268a49..b6bb03377 100644 --- a/configure.in.in +++ b/configure.in.in @@ -185,7 +185,11 @@ PKG_CHECK_MODULES(GNOMEVFS, gnome-vfs-2.0 >= $GNOME_REQUIRED_VERSION, enable_gno AC_SUBST(GNOMEVFS_CFLAGS) AC_SUBST(GNOMEVFS_LIBS) -PKG_CHECK_MODULES(GNOME, libgnomecanvas-2.0 >= $GNOME_REQUIRED_VERSION libgnomeui-2.0 >= $GNOME_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION libgnomeprintui-2.2 >= $GNOME_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION libpanelapplet-2.0 >= $GNOME_REQUIRED_VERSION, enable_gnome=yes, enable_gnome=no) +GNOMECANVAS_REQUIRED_VERSION=@GNOMECANVAS_REQUIRED_VERSION@ +GNOMEPANEL_REQUIRED_VERSION=@GNOMEPANEL_REQUIRED_VERSION@ +GNOMEPRINT_REQUIRED_VERSION=@GNOMEPRINT_REQUIRED_VERSION@ + +PKG_CHECK_MODULES(GNOME, libgnomecanvas-2.0 >= $GNOMECANVAS_REQUIRED_VERSION libgnomeui-2.0 >= $GNOME_REQUIRED_VERSION gtk+-2.0 >= $GTK_REQUIRED_VERSION libgnomeprintui-2.2 >= $GNOMEPRINT_REQUIRED_VERSION gmodule-2.0 >= $GTK_REQUIRED_VERSION libpanelapplet-2.0 >= $GNOMEPANEL_REQUIRED_VERSION, enable_gnome=yes, enable_gnome=no) AC_SUBST(GNOME_CFLAGS) AC_SUBST(GNOME_LIBS) diff --git a/gnome/Gnome.metadata b/gnome/Gnome.metadata index 826ca45da..ec7ce4601 100644 --- a/gnome/Gnome.metadata +++ b/gnome/Gnome.metadata @@ -59,6 +59,7 @@ out out 1 + gpointer ArtWindRule 1 public diff --git a/gnome/PanelApplet.custom b/gnome/PanelApplet.custom index 3f1a50e6a..14eb96812 100644 --- a/gnome/PanelApplet.custom +++ b/gnome/PanelApplet.custom @@ -9,6 +9,7 @@ public void SetupMenu (string xml, BonoboUIVerb[] items) IntPtr native = GLib.Marshaller.StringToPtrGStrdup (xml); panel_applet_setup_menu (Handle, native, nulled_items, IntPtr.Zero); GLib.Marshaller.Free (native); + PersistentData ["setup_menu_verbs"] = items; } public abstract void Creation (); diff --git a/gnome/gnome-api-2.16.raw b/gnome/gnome-api-2.16.raw index f46817f4b..99394c896 100644 --- a/gnome/gnome-api-2.16.raw +++ b/gnome/gnome-api-2.16.raw @@ -1,12 +1,11 @@ - - - +--> @@ -39,6 +38,7 @@ + @@ -47,6 +47,9 @@ + + + @@ -73,6 +76,7 @@ + @@ -201,11 +205,12 @@ + - + @@ -718,9 +723,7 @@ - - - + @@ -1018,7 +1021,7 @@ - + @@ -1479,7 +1482,7 @@ - + @@ -1563,8 +1566,8 @@ - - + + @@ -1606,7 +1609,7 @@ - + @@ -1678,6 +1681,9 @@ + + + @@ -1747,7 +1753,7 @@ - + @@ -1767,9 +1773,7 @@ - - - + @@ -1846,7 +1850,7 @@ - + @@ -4418,7 +4422,7 @@ - + @@ -4427,17 +4431,17 @@ - + - + - + @@ -4445,7 +4449,7 @@ - + @@ -4453,7 +4457,7 @@ - + @@ -4462,7 +4466,7 @@ - + @@ -4470,16 +4474,16 @@ - + - + - + @@ -4571,6 +4575,15 @@ + + + + + + + + + @@ -4833,9 +4846,7 @@ - - - + @@ -6395,9 +6406,7 @@ - - - + @@ -6671,9 +6680,7 @@ - - - + @@ -6902,6 +6909,12 @@ + + + + + + @@ -6958,6 +6971,4 @@ - - - \ No newline at end of file + \ No newline at end of file diff --git a/gnomevfs/Gnomevfs.metadata b/gnomevfs/Gnomevfs.metadata index eceb6c111..09b49d712 100644 --- a/gnomevfs/Gnomevfs.metadata +++ b/gnomevfs/Gnomevfs.metadata @@ -60,6 +60,7 @@ 1 UriHideOptions 1 + 1 1 1 1 diff --git a/gnomevfs/gnome-vfs-api-2.16.raw b/gnomevfs/gnome-vfs-api-2.16.raw index d2a3c7405..a4ae08778 100644 --- a/gnomevfs/gnome-vfs-api-2.16.raw +++ b/gnomevfs/gnome-vfs-api-2.16.raw @@ -1,12 +1,22 @@ - - - +--> + + + + + + + + + + + @@ -58,6 +68,9 @@ + + + @@ -66,6 +79,9 @@ + + + @@ -121,6 +137,10 @@ + + + + @@ -151,26 +171,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -235,6 +235,8 @@ + + @@ -273,6 +275,7 @@ + @@ -326,6 +329,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + @@ -345,6 +373,14 @@ + + + + + + + + @@ -374,6 +410,14 @@ + + + + + + + + @@ -385,6 +429,14 @@ + + + + + + + + @@ -410,7 +462,7 @@ - + @@ -442,7 +494,7 @@ - + @@ -472,20 +524,6 @@ - - - - - - - - - - - - - - @@ -516,7 +554,7 @@ - + @@ -534,7 +572,7 @@ - + @@ -550,14 +588,14 @@ - + - + @@ -572,20 +610,6 @@ - - - - - - - - - - - - - - @@ -601,6 +625,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -850,9 +1010,13 @@ + + + + @@ -871,10 +1035,18 @@ + + + + + + + + @@ -887,6 +1059,13 @@ + + + + + + + @@ -907,12 +1086,7 @@ - - - - - @@ -974,11 +1148,11 @@ + + - - @@ -1038,13 +1212,31 @@ - - + + + + + + + + + + + + + + + + + + + + @@ -1096,8 +1288,8 @@ - - + + @@ -1229,13 +1421,12 @@ - + - @@ -1339,7 +1530,6 @@ - @@ -1717,6 +1907,7 @@ + @@ -1882,7 +2073,7 @@ - + @@ -1919,7 +2110,7 @@ - + @@ -2030,7 +2221,7 @@ - + @@ -2053,7 +2244,7 @@ - + @@ -2169,9 +2360,9 @@ - - - + + + @@ -2203,6 +2394,14 @@ + + + + + + + + @@ -2291,6 +2490,20 @@ + + + + + + + + + + + + + + @@ -2306,6 +2519,12 @@ + + + + + + @@ -2361,6 +2580,22 @@ + + + + + + + + + + + + + + + + @@ -2518,24 +2753,30 @@ - - + + - - + + - - + + - - + + - + + + + + + + - + @@ -2758,16 +2999,22 @@ - + - + + + + + + + @@ -2810,7 +3057,7 @@ - + @@ -2845,7 +3092,7 @@ - + @@ -2882,8 +3129,8 @@ - - + + @@ -3143,7 +3390,7 @@ - + @@ -3443,6 +3690,4 @@ - - - \ No newline at end of file + \ No newline at end of file diff --git a/parser/gapi-parser.cs b/parser/gapi-parser.cs index b4df40030..56ba5c503 100644 --- a/parser/gapi-parser.cs +++ b/parser/gapi-parser.cs @@ -158,7 +158,9 @@ namespace GtkSharp.Parsing { XmlDocument final = new XmlDocument (); final.Load (prefile); - final.Save (outfile); + XmlTextWriter writer = new XmlTextWriter (outfile, null); + writer.Formatting = Formatting.Indented; + final.Save (writer); File.Delete (prefile); } diff --git a/sample/PrintSample.cs b/sample/PrintSample.cs index 349f6e323..34315936c 100644 --- a/sample/PrintSample.cs +++ b/sample/PrintSample.cs @@ -33,7 +33,7 @@ class PrintSample Application.Run (); } - void MyPrint (PrintContext gpc) + void MyPrint (Gnome.PrintContext gpc) { gpc.BeginPage ("demo"); gpc.MoveTo (1, 700); @@ -43,8 +43,8 @@ class PrintSample void OnPrintClicked (object o, EventArgs args) { - PrintJob pj = new PrintJob (PrintConfig.Default ()); - PrintDialog dialog = new PrintDialog (pj, "Print Test", 0); + Gnome.PrintJob pj = new Gnome.PrintJob (Gnome.PrintConfig.Default ()); + Gnome.PrintDialog dialog = new Gnome.PrintDialog (pj, "Print Test", 0); int response = dialog.Run (); Console.WriteLine ("response: " + response); @@ -55,7 +55,7 @@ class PrintSample return; } - PrintContext ctx = pj.Context; + Gnome.PrintContext ctx = pj.Context; MyPrint (ctx); pj.Close (); diff --git a/sources/Makefile.am b/sources/Makefile.am index d0185bdc0..3f11c15f2 100644 --- a/sources/Makefile.am +++ b/sources/Makefile.am @@ -53,8 +53,8 @@ GTK_2_10_DOWNLOADS = \ http://ftp.gnome.org/pub/GNOME/platform/2.15/2.15.4/sources/libgnome-2.15.1.tar.bz2 \ http://ftp.gnome.org/pub/GNOME/platform/2.15/2.15.4/sources/libgnomecanvas-2.14.0.tar.bz2 \ http://ftp.gnome.org/pub/GNOME/platform/2.15/2.15.4/sources/libgnomeui-2.15.2.tar.bz2 \ - http://ftp.gnome.org/pub/GNOME/desktop/2.15/2.15.4/sources/libgnomeprint-2.12.1.tar.bz2 \ - http://ftp.gnome.org/pub/GNOME/desktop/2.15/2.15.4/sources/libgnomeprintui-2.12.1.tar.bz2 \ + http://ftp.gnome.org/pub/GNOME/platform/2.10/2.10.0/sources/libgnomeprint-2.10.0.tar.bz2 \ + http://ftp.gnome.org/pub/GNOME/platform/2.10/2.10.0/sources/libgnomeprintui-2.10.0.1.tar.bz2 \ http://ftp.gnome.org/pub/GNOME/desktop/2.15/2.15.4/sources/gnome-panel-2.14.2.tar.bz2 GNOME_DOWNLOADS = \ diff --git a/sources/gtk-sharp-2.10-sources.xml b/sources/gtk-sharp-2.10-sources.xml index 2ebda6327..6f002eafb 100644 --- a/sources/gtk-sharp-2.10-sources.xml +++ b/sources/gtk-sharp-2.10-sources.xml @@ -190,7 +190,7 @@ - + gnome-font-family.h gnome-fontmap.h gnome-print-encode.h @@ -210,7 +210,7 @@ - + gnome-canvas-hacktext.h gnome-print-copies.h gnome-print-i18n.h