diff --git a/ChangeLog b/ChangeLog index 611753d55..f7334f858 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2005-07-28 Dan Winship + + * sources/gtk-sharp-2.4-sources.xml: + * sources/gtk-sharp-2.6-sources.xml: exclude a bunch of + gnome-print stuff that is not part of gnome-print's public API. + + * gnome/gnome-api.raw: regen + + * gnome/Gnome.metadata: remove some no-longer-needed metadata + + * gnome/GPFontEntry.custom: + * gnome/GPPath.custom: no longer needed + + * gnome/FontFamily.cs: moved from FontFamily.custom, since there's + no longer any non-custom portion of this. + 2005-07-27 Dan Winship * gtk/ComboBoxEntry.custom: add an "Entry" property to cleanly diff --git a/gnome/FontFamily.custom b/gnome/FontFamily.cs similarity index 70% rename from gnome/FontFamily.custom rename to gnome/FontFamily.cs index 9f3004e92..b72bb2143 100644 --- a/gnome/FontFamily.custom +++ b/gnome/FontFamily.cs @@ -1,4 +1,4 @@ -// FontFamily.custom - customizations to Gnome.FontFamily +// FontFamily.cs - customizations to Gnome.FontFamily // // Authors: Mike Kestner // @@ -18,6 +18,14 @@ // Free Software Foundation, Inc., 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. +namespace Gnome { + + using System; + using System.Runtime.InteropServices; + + public class FontFamily { + + private FontFamily () {} [DllImport("gnomeprint-2-2")] static extern IntPtr gnome_font_family_list (); @@ -35,22 +43,5 @@ result [i++] = val; return result; } - - [DllImport("gnomeprint-2-2")] - static extern IntPtr gnome_font_family_style_list (IntPtr raw); - - public string[] StyleList () - { - IntPtr list_ptr = gnome_font_family_style_list (Handle); - if (list_ptr == IntPtr.Zero) - return new string [0]; - - GLib.List list = new GLib.List (list_ptr, typeof (string)); - string[] result = new string [list.Count]; - int i = 0; - foreach (string val in list) - result [i++] = val; - return result; - } - - + } +} diff --git a/gnome/GPFontEntry.custom b/gnome/GPFontEntry.custom deleted file mode 100644 index c1d0a8e92..000000000 --- a/gnome/GPFontEntry.custom +++ /dev/null @@ -1,26 +0,0 @@ -// GPFontEntry.custom - Gnome.GPFontEntry customizations -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - - [Obsolete ("Replaced by Face property.")] - public Gnome.FontFace face { - get { - Gnome.FontFace ret = (Gnome.FontFace) GLib.Object.GetObject(_face); - return ret; - } - set { _face = value.Handle; } - } - diff --git a/gnome/GPPath.custom b/gnome/GPPath.custom deleted file mode 100644 index e3b6d4cd1..000000000 --- a/gnome/GPPath.custom +++ /dev/null @@ -1,26 +0,0 @@ -// Gnome.GPPath.custom - Gnome GPPath class customizations -// -// Author: Mike Kestner -// -// Copyright (C) 2005 Novell, Inc. -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of version 2 of the Lesser GNU General -// Public License as published by the Free Software Foundation. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this program; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. - - - public static GPPath NewFromBpath (Art.Bpath bpath) - { - return new GPPath (gp_path_new_from_bpath (ref bpath)); - } - diff --git a/gnome/Gnome.metadata b/gnome/Gnome.metadata index 6241fb446..2b9b71d70 100644 --- a/gnome/Gnome.metadata +++ b/gnome/Gnome.metadata @@ -26,8 +26,6 @@ const-gchar* Base const-char* - PrintWidget - GnomePrintWidget_ 1 1 GdkHelper @@ -109,6 +107,8 @@ 1 1 Activated + 1 + 1 1 1 1 @@ -118,10 +118,6 @@ gchar* const-gchar* const-gchar* - 1 - 1 - 1 - 1 1 const-gchar* 1 @@ -143,10 +139,8 @@ GnomePrintDialogFlags const-gchar* const-gchar* - GObject GObject 1 - const-gchar* 1 1 1 @@ -162,5 +156,4 @@ true 1 const-gchar* - private diff --git a/gnome/Makefile.am b/gnome/Makefile.am index fd733345c..5a874b7bd 100644 --- a/gnome/Makefile.am +++ b/gnome/Makefile.am @@ -16,6 +16,7 @@ glue_includes = gnome.h,libgnomeprint/gnome-print.h,libgnomeprint/gnome-print-pa sources = \ BonoboUIVerb.cs \ + FontFamily.cs \ IconTheme.cs \ Modules.cs \ PanelAppletFactory.cs @@ -45,8 +46,6 @@ customs = \ Druid.custom \ DruidPageEdge.custom \ Font.custom \ - FontFamily.custom \ - GPFontEntry.custom \ IconList.custom \ IconTextItem.custom \ PanelApplet.custom \ diff --git a/gnome/gnome-api.raw b/gnome/gnome-api.raw index d240f8af4..c467813f3 100644 --- a/gnome/gnome-api.raw +++ b/gnome/gnome-api.raw @@ -4816,12 +4816,6 @@ - - - - - - @@ -4839,11 +4833,6 @@ - - - - - @@ -4877,6 +4866,15 @@ + + + + + + + + + @@ -5216,40 +5214,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5407,16 +5371,6 @@ - - - - - - - - - - @@ -5533,82 +5487,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5744,201 +5622,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -6065,12 +5749,6 @@ - - - - - - @@ -6163,14 +5841,6 @@ - - - - - - - - @@ -6305,127 +5975,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -6710,30 +6259,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -6802,19 +6327,6 @@ - - - - - - - - - - - - - @@ -6831,32 +6343,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -6871,39 +6357,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -7054,257 +6507,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sources/gtk-sharp-2.4-sources.xml b/sources/gtk-sharp-2.4-sources.xml index 7ef5c613a..e9a657a54 100644 --- a/sources/gtk-sharp-2.4-sources.xml +++ b/sources/gtk-sharp-2.4-sources.xml @@ -165,13 +165,34 @@ - libgnomeprint-2.6.0/libgnomeprint + + gnome-font-family.h + gnome-fontmap.h + gnome-print-encode.h + gnome-print-frgba.h + gnome-print-i18n.h + gnome-print-module.h + gnome-print-multipage.h + gnome-print-pdf.h + gnome-print-ps2.h + gnome-print-rbuf.h + gnome-print-rgbp.h + gp-path.h + gp-truetype-utils.h + gp-tt-t1.h + - libgnomeprintui-2.6.0/libgnomeprintui - libgnomeprintui-2.6.0/libgnomeprintui/gpaui + + gnome-canvas-hacktext.h + gnome-print-copies.h + gnome-print-i18n.h + gnome-print-paper-preview.h + gnome-print-widget.h + gnome-printer-selector.h + diff --git a/sources/gtk-sharp-2.6-sources.xml b/sources/gtk-sharp-2.6-sources.xml index 2cc7b0041..6f911eaf1 100644 --- a/sources/gtk-sharp-2.6-sources.xml +++ b/sources/gtk-sharp-2.6-sources.xml @@ -171,13 +171,34 @@ - libgnomeprint-2.6.0/libgnomeprint + + gnome-font-family.h + gnome-fontmap.h + gnome-print-encode.h + gnome-print-frgba.h + gnome-print-i18n.h + gnome-print-module.h + gnome-print-multipage.h + gnome-print-pdf.h + gnome-print-ps2.h + gnome-print-rbuf.h + gnome-print-rgbp.h + gp-path.h + gp-truetype-utils.h + gp-tt-t1.h + - libgnomeprintui-2.6.0/libgnomeprintui - libgnomeprintui-2.6.0/libgnomeprintui/gpaui + + gnome-canvas-hacktext.h + gnome-print-copies.h + gnome-print-i18n.h + gnome-print-paper-preview.h + gnome-print-widget.h + gnome-printer-selector.h +