Browse files

2008-08-06 Mike Kestner <mkestner@novell.com>

	* *: Update to GNOME 2.23.5 API.  Add gnome-print-sharp.dll
	and gnome-panel-sharp.dll assemblies, along with .pcs to detect
	their availability.

svn path=/trunk/gnome-desktop-sharp/; revision=109795
  • Loading branch information...
1 parent 62f20d1 commit d38c6943db700d501004aed764244a59fd6a8078 @mkestner mkestner committed Aug 6, 2008
Showing with 4,080 additions and 151 deletions.
  1. +6 −0 ChangeLog
  2. +1 −1 Makefile.am
  3. +3 −4 Makefile.include
  4. +35 −8 configure.in
  5. +28 −0 gnomepanel/Makefile.am
  6. +23 −0 gnomepanel/PanelApplet.custom
  7. +60 −0 gnomepanel/PanelAppletFactory.cs
  8. +23 −0 gnomepanel/glue/Makefile.am
  9. +29 −0 gnomepanel/glue/panelapplet.c
  10. +302 −0 gnomepanel/gnome-panel-api.raw
  11. +12 −0 gnomepanel/gnome-panel-sharp-2.24.pc.in
  12. +3 −0 gnomepanel/gnome-panel-sharp.dll.config.in
  13. +12 −0 gnomepanel/metadata
  14. +58 −0 gnomeprint/Font.custom
  15. +47 −0 gnomeprint/FontFamily.cs
  16. +29 −0 gnomeprint/Makefile.am
  17. +42 −0 gnomeprint/Print.custom
  18. +284 −0 gnomeprint/PrintContext.custom
  19. +27 −0 gnomeprint/PrintDialog.custom
  20. +25 −0 gnomeprint/PrintJob.custom
  21. +2,230 −0 gnomeprint/gnome-print-api.raw
  22. +12 −0 gnomeprint/gnome-print-sharp-2.18.pc.in
  23. +5 −0 gnomeprint/gnome-print-sharp.dll.config.in
  24. +43 −0 gnomeprint/metadata
  25. +3 −0 gtkhtml/Makefile.am
  26. +23 −0 gtkhtml/glue/Makefile.am
  27. +50 −27 gtkhtml/gtkhtml-api.raw
  28. +3 −0 gtksourceview/Makefile.am
  29. +23 −0 gtksourceview/glue/Makefile.am
  30. +328 −3 gtksourceview/gtksourceview2-api.raw
  31. +3 −0 nautilusburn/Makefile.am
  32. +23 −0 nautilusburn/glue/Makefile.am
  33. +16 −12 nautilusburn/nautilusburn-api.raw
  34. +80 −0 sample/PrintSample.cs
  35. +27 −26 sources/Makefile.am
  36. +4 −4 sources/gtkhtml-font-style-enum.patch
  37. +52 −8 sources/{sources-2.20.xml → sources.xml}
  38. +1 −1 vte/Makefile.am
  39. +29 −29 vte/vte-api.raw
  40. +2 −1 wnck/Makefile.am
  41. +23 −0 wnck/glue/Makefile.am
  42. +51 −27 wnck/wnck-api.raw
View
6 ChangeLog
@@ -1,3 +1,9 @@
+2008-08-06 Mike Kestner <mkestner@novell.com>
+
+ * *: Update to GNOME 2.23.5 API. Add gnome-print-sharp.dll
+ and gnome-panel-sharp.dll assemblies, along with .pcs to detect
+ their availability.
+
2008-03-10 Mike Kestner <mkestner@novell.com>
* configure.in: bump version and tag 2.20.1.
View
2 Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = sources gnomedesktop gtkhtml gtksourceview nautilusburn rsvg vte wnck #sample
+SUBDIRS = sources gnomedesktop gnomepanel gnomeprint gtkhtml gtksourceview nautilusburn rsvg vte wnck #sample
EXTRA_DIST = \
gtk-sharp.snk \
View
7 Makefile.include
@@ -25,13 +25,12 @@ $(API): $(METADATA) $(RAW_API)
build_customs = $(addprefix $(srcdir)/, $(customs))
api_includes = $(GTKSHARP_CFLAGS) $(addprefix -I:, $(INCLUDE_API))
+
generated-stamp: $(API) $(INCLUDE_API) $(build_customs)
rm -f generated/* && \
$(GAPI_CODEGEN) --generate $(API) \
- $(api_includes) \
+ $(api_includes) $(glue_args) \
--outdir=generated --customdir=$(srcdir) --assembly-name=$(ASSEMBLY_NAME) \
- --gluelib-name=$(pkg)sharpglue-2 --glue-filename=glue/generated.c \
- --glue-includes=$(glue_includes) \
&& touch generated-stamp
$(SNK): $(top_srcdir)/$(SNK)
@@ -41,7 +40,7 @@ AssemblyInfo.cs: $(top_srcdir)/AssemblyInfo.cs.in
sed -e "s/@API_VERSION@/$(API_VERSION)/" $(top_srcdir)/AssemblyInfo.cs.in > AssemblyInfo.cs
build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs
-build_references = $(MONO_CAIRO_LIBS) $(GTKSHARP_LIBS) $(addprefix /r:, $(references))
+build_references = $(MONO_CAIRO_LIBS) $(GNOMESHARP_LIBS) $(addprefix /r:, $(references))
if PLATFORM_WIN32
GAPI_CDECL_INSERT=$(top_srcdir)/gapi-cdecl-insert --keyfile=$(SNK) $(ASSEMBLY)
View
43 configure.in
@@ -1,7 +1,7 @@
AC_INIT(README)
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(gnome-desktop-sharp, 2.20.1)
+AM_INIT_AUTOMAKE(gnome-desktop-sharp, 2.23.90)
AM_MAINTAINER_MODE
case "$host" in
@@ -156,8 +156,8 @@ AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no)
AC_SUBST(GAPI_FIXUP)
## Versions of dependencies
-GNOME_REQUIRED_VERSION=2.20.0
-GNOME_SHARP_REQUIRED_VERSION=2.20.0
+GNOME_REQUIRED_VERSION=2.23.0
+GNOME_SHARP_REQUIRED_VERSION=2.23.0
PKG_CHECK_MODULES(GNOMESHARP, gnome-sharp-2.0 >= $GNOME_SHARP_REQUIRED_VERSION, enable_gnome=yes, enable_gnome=no)
AC_SUBST(GNOMESHARP_CFLAGS)
@@ -166,29 +166,41 @@ AC_SUBST(GNOMESHARP_LIBS)
AM_CONDITIONAL(ENABLE_GNOME, test "x$enable_gnome" = "xyes")
AC_SUBST(CFLAGS)
-PKG_CHECK_MODULES(NAUTILUSBURN, libnautilus-burn >= $GNOME_REQUIRED_VERSION, enable_nautilusburn=yes, enable_nautilusburn=no)
+NAUTILUSBURN_REQUIRED_VERSION=2.22.1
+
+PKG_CHECK_MODULES(NAUTILUSBURN, libnautilus-burn >= $NAUTILUSBURN_REQUIRED_VERSION, enable_nautilusburn=yes, enable_nautilusburn=no)
AC_SUBST(NAUTILUSBURN_CFLAGS)
AC_SUBST(NAUTILUSBURN_LIBS)
-RSVG_REQUIRED_VERSION=2.18.2
+RSVG_REQUIRED_VERSION=2.22.2
PKG_CHECK_MODULES(RSVG, librsvg-2.0 >= $RSVG_REQUIRED_VERSION, enable_rsvg=yes, enable_rsvg=no)
AC_SUBST(RSVG_CFLAGS)
AC_SUBST(RSVG_LIBS)
-GTKHTML_REQUIRED_VERSION=3.16.0
+PKG_CHECK_MODULES(GNOME_PANEL, libpanelapplet-2.0 >= $GNOME_REQUIRED_VERSION, enable_gnome_panel=yes, enable_gnome_panel=no)
+AC_SUBST(GNOME_PANEL_CFLAGS)
+AC_SUBST(GNOME_PANEL_LIBS)
+
+GNOME_PRINT_REQUIRED_VERSION=2.18.0
+
+PKG_CHECK_MODULES(GNOME_PRINT, libgnomeprint-2.2 >= $GNOME_PRINT_REQUIRED_VERSION libgnomeprintui-2.2 >= $GNOME_PRINT_REQUIRED_VERSION, enable_gnome_print=yes, enable_gnome_print=no)
+AC_SUBST(GNOME_PRINT_CFLAGS)
+AC_SUBST(GNOME_PRINT_LIBS)
+
+GTKHTML_REQUIRED_VERSION=3.23.5
PKG_CHECK_MODULES(GTKHTML, libgtkhtml-3.14 >= $GTKHTML_REQUIRED_VERSION, enable_gtkhtml=yes, enable_gtkhtml=no)
AC_SUBST(GTKHTML_CFLAGS)
AC_SUBST(GTKHTML_LIBS)
-GTKSOURCEVIEW_REQUIRED_VERSION=2.0.0
+GTKSOURCEVIEW_REQUIRED_VERSION=2.2.2
PKG_CHECK_MODULES(GTKSOURCEVIEW, gtksourceview-2.0 >= $GTKSOURCEVIEW_REQUIRED_VERSION, enable_gtksourceview=yes, enable_gtksourceview=no)
AC_SUBST(GTKSOURCEVIEW_CFLAGS)
AC_SUBST(GTKSOURCEVIEW_LIBS)
-VTE_REQUIRED_VERSION=0.16.9
+VTE_REQUIRED_VERSION=0.16.14
PKG_CHECK_MODULES(VTE, vte >= $VTE_REQUIRED_VERSION, enable_vte=yes, enable_vte=no)
AC_SUBST(VTE_CFLAGS)
@@ -199,6 +211,8 @@ AC_SUBST(WNCK_CFLAGS)
AC_SUBST(WNCK_LIBS)
AM_CONDITIONAL(ENABLE_GTKHTML, test "x$enable_gtkhtml" = "xyes")
+AM_CONDITIONAL(ENABLE_GNOME_PANEL, test "x$enable_gnome_panel" = "xyes")
+AM_CONDITIONAL(ENABLE_GNOME_PRINT, test "x$enable_gnome_print" = "xyes")
AM_CONDITIONAL(ENABLE_GTKSOURCEVIEW, test "x$enable_gtksourceview" = "xyes")
AM_CONDITIONAL(ENABLE_NAUTILUSBURN, test "x$enable_nautilusburn" = "xyes")
AM_CONDITIONAL(ENABLE_RSVG, test "x$enable_rsvg" = "xyes")
@@ -213,23 +227,34 @@ sources/Makefile
gnomedesktop/Makefile
gnomedesktop/gnomedesktop-sharp.dll.config
gnomedesktop/gnome-desktop-sharp-2.0.pc
+gnomepanel/Makefile
+gnomepanel/glue/Makefile
+gnomepanel/gnome-panel-sharp.dll.config
+gnomepanel/gnome-panel-sharp-2.24.pc
+gnomeprint/Makefile
+gnomeprint/gnome-print-sharp.dll.config
+gnomeprint/gnome-print-sharp-2.18.pc
nautilusburn/Makefile
+nautilusburn/glue/Makefile
nautilusburn/nautilusburn-sharp.dll.config
nautilusburn/nautilusburn-sharp.pc
rsvg/Makefile
rsvg/rsvg2-sharp.dll.config
rsvg/rsvg2-sharp-2.0.pc
gtkhtml/Makefile
+gtkhtml/glue/Makefile
gtkhtml/gtkhtml-sharp.dll.config
gtkhtml/gtkhtml-sharp-3.14.pc
gtksourceview/Makefile
+gtksourceview/glue/Makefile
gtksourceview/gtksourceview2-sharp.dll.config
gtksourceview/gtksourceview2-sharp.pc
vte/Makefile
vte/vte-sharp.dll.config
vte/vte-sharp-0.16.pc
vte/glue/Makefile
wnck/Makefile
+wnck/glue/Makefile
wnck/wnck-sharp.dll.config
wnck/wnck-sharp-1.0.pc
])
@@ -245,6 +270,8 @@ echo " * $CS compiler: $CSC $CSFLAGS"
echo ""
echo " Optional assemblies included in the build:"
echo ""
+echo " * gnome-panel-sharp.dll: $enable_gnome_panel"
+echo " * gnome-print-sharp.dll: $enable_gnome_print"
echo " * gtkhtml-sharp.dll: $enable_gtkhtml"
echo " * gtksourceview2-sharp.dll: $enable_gtksourceview"
echo " * nautilusburn-sharp.dll: $enable_nautilusburn"
View
28 gnomepanel/Makefile.am
@@ -0,0 +1,28 @@
+SUBDIRS = . glue
+
+if ENABLE_GNOME_PANEL
+pkg = gnome-panel
+pkgversion = 2.24
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gnome-panel-sharp-2.24.pc
+else
+pkg =
+pkgversion =
+endif
+
+API_VERSION=2.24.0.0
+INCLUDE_API =
+METADATA = metadata
+references =
+glue_args = --glue-includes=panel-applet.h --gluelib-name=gnomepanelsharpglue-2 --glue-filename=glue/generated.c
+
+sources = \
+ PanelAppletFactory.cs
+
+customs = \
+ PanelApplet.custom
+
+add_dist = gnome-panel-sharp-2.24.pc.in gnome-panel-sharp.dll.config.in
+
+include ../Makefile.include
+
View
23 gnomepanel/PanelApplet.custom
@@ -0,0 +1,23 @@
+[DllImport ("panel-applet-2")]
+static extern void panel_applet_setup_menu (IntPtr handle, IntPtr xml, BonoboUIVerb[] items, IntPtr user_data);
+
+public void SetupMenu (string xml, BonoboUIVerb[] items)
+{
+ BonoboUIVerb[] nulled_items = new BonoboUIVerb[items.Length + 1];
+ Array.Copy (items, nulled_items, items.Length);
+ nulled_items[items.Length] = new BonoboUIVerb (null, null);
+ 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 ();
+
+public abstract string IID {
+ get;
+}
+
+public abstract string FactoryIID {
+ get;
+}
View
60 gnomepanel/PanelAppletFactory.cs
@@ -0,0 +1,60 @@
+// Gnome.PanelAppletFactory.cs - PanelAppletFactory class impl
+//
+// Copyright (c) 2004-2005 Novell, Inc.
+//
+// This code is inserted after the automatically generated code.
+//
+// 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.
+
+
+
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+namespace Gnome
+{
+ public class PanelAppletFactory
+ {
+ private PanelAppletFactory () {}
+
+ private static string _IID;
+ private static string _factoryIID;
+ private static GnomeSharp.PanelAppletFactoryCallbackWrapper cb_wrapper;
+
+ public static void Register (Type applet_type)
+ {
+ PanelApplet applet = (PanelApplet) Activator.CreateInstance (applet_type, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance | BindingFlags.CreateInstance, null, new object[] {IntPtr.Zero}, null);
+
+ cb_wrapper = new GnomeSharp.PanelAppletFactoryCallbackWrapper (new PanelAppletFactoryCallback (Creation));
+ _IID = applet.IID;
+ _factoryIID = applet.FactoryIID;
+ IntPtr native_iid = GLib.Marshaller.StringToPtrGStrdup (_factoryIID);
+ panel_applet_factory_main (native_iid, ((GLib.GType) applet_type).Val, cb_wrapper.NativeDelegate, IntPtr.Zero);
+ GLib.Marshaller.Free (native_iid);
+ }
+
+ private static bool Creation (PanelApplet applet, string iid)
+ {
+ if (_IID != iid)
+ return false;
+ applet.Creation ();
+ return true;
+ }
+
+ [DllImport("panel-applet-2")]
+ static extern int panel_applet_factory_main(IntPtr iid, IntPtr applet_type, GnomeSharp.PanelAppletFactoryCallbackNative cb, IntPtr data);
+ }
+}
View
23 gnomepanel/glue/Makefile.am
@@ -0,0 +1,23 @@
+lib_LTLIBRARIES = $(TARGET)
+
+if ENABLE_GNOME_PANEL
+TARGET = libgnomepanelsharpglue-2.la
+else
+TARGET =
+endif
+
+libgnomepanelsharpglue_2_la_SOURCES = panelapplet.c
+
+nodist_libgnomepanelsharpglue_2_la_SOURCES = generated.c
+
+libgnomepanelsharpglue_2_la_LDFLAGS = -module -avoid-version -no-undefined
+
+libgnomepanelsharpglue_2_la_LIBADD = $(GNOME_PANEL_LIBS)
+
+INCLUDES = $(GNOME_PANEL_CFLAGS) -I$(top_srcdir)
+
+libgnomepanelsharpglue.dll: $(libgnomepanelsharpglue_2_la_OBJECTS) libgnomepanelsharpglue.rc libgnomepanelsharpglue.def
+ ./build-dll libgnomepanelsharpglue-2 $(VERSION)
+
+CLEANFILES = lib*.a lib*.dll
+
View
29 gnomepanel/glue/panelapplet.c
@@ -0,0 +1,29 @@
+#include <panel-applet.h>
+
+typedef struct _ContextMenuItem
+{
+ const gchar *verb;
+ gpointer callback;
+} ContextMenuItem;
+
+void panelapplet_setup_menu (PanelApplet *applet, const gchar *xml, ContextMenuItem *menuitems, gint cnt);
+
+void
+panelapplet_setup_menu (PanelApplet *applet, const gchar *xml, ContextMenuItem *menuitems, gint cnt)
+{
+ int i;
+ BonoboUIVerb *menu_verbs = NULL;
+
+ menu_verbs = g_new0 (BonoboUIVerb, cnt + 1);
+
+ for (i = 0; i < cnt; i++) {
+ menu_verbs[i].cname = menuitems[i].verb;
+ menu_verbs[i].cb = menuitems[i].callback;
+ menu_verbs[i].user_data = NULL;
+ }
+ menu_verbs[cnt].cname = NULL;
+ menu_verbs[cnt].cb = NULL;
+ menu_verbs[cnt].user_data = NULL;
+ panel_applet_setup_menu (applet, xml, menu_verbs, NULL);
+ g_free (menu_verbs);
+}
View
302 gnomepanel/gnome-panel-api.raw
@@ -0,0 +1,302 @@
+<?xml version="1.0"?>
+<api>
+ <!--
+
+ This file was automatically generated.
+ Please DO NOT MODIFY THIS FILE, modify .metadata files instead.
+
+-->
+ <namespace name="Gnome" library="panel-applet-2">
+ <enum name="PanelAppletBackgroundType" cname="PanelAppletBackgroundType" type="enum">
+ <member cname="PANEL_NO_BACKGROUND" name="NoBackground" />
+ <member cname="PANEL_COLOR_BACKGROUND" name="ColorBackground" />
+ <member cname="PANEL_PIXMAP_BACKGROUND" name="PixmapBackground" />
+ </enum>
+ <enum name="PanelAppletFlags" cname="PanelAppletFlags" type="flags">
+ <member cname="PANEL_APPLET_FLAGS_NONE" name="FlagsNone" />
+ <member cname="PANEL_APPLET_EXPAND_MAJOR" name="ExpandMajor" value="1 &lt;&lt; 0" />
+ <member cname="PANEL_APPLET_EXPAND_MINOR" name="ExpandMinor" value="1 &lt;&lt; 1" />
+ <member cname="PANEL_APPLET_HAS_HANDLE" name="HasHandle" value="1 &lt;&lt; 2" />
+ </enum>
+ <callback name="PanelAppletFactoryCallback" cname="PanelAppletFactoryCallback">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="PanelApplet*" name="applet" />
+ <parameter type="const-gchar*" name="iid" />
+ <parameter type="gpointer" name="user_data" />
+ </parameters>
+ </callback>
+ <object name="PanelAppletShell" cname="PanelAppletShell" parent="BonoboObject">
+ <field name="Priv" cname="priv" type="PanelAppletShellPrivate*" />
+ <method name="Construct" cname="panel_applet_shell_construct">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="PanelApplet*" name="applet" />
+ </parameters>
+ </method>
+ <method name="GetType" cname="panel_applet_shell_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <constructor cname="panel_applet_shell_new">
+ <parameters>
+ <parameter type="PanelApplet*" name="applet" />
+ </parameters>
+ </constructor>
+ </object>
+ <object name="PanelApplet" cname="PanelApplet" parent="GtkEventBox">
+ <field name="Priv" cname="priv" type="PanelAppletPrivate*" />
+ <signal name="ChangeOrient" cname="change_orient" when="LAST" field_name="change_orient">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="PanelApplet*" name="applet" />
+ <parameter type="PanelAppletOrient" name="orient" />
+ </parameters>
+ </signal>
+ <signal name="ChangeSize" cname="change_size" when="LAST" field_name="change_size">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="PanelApplet*" name="applet" />
+ <parameter type="guint" name="size" />
+ </parameters>
+ </signal>
+ <signal name="ChangeBackground" cname="change_background" when="LAST" field_name="change_background">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="PanelApplet*" name="applet" />
+ <parameter type="PanelAppletBackgroundType" name="type" />
+ <parameter type="GdkColor*" name="color" />
+ <parameter type="GdkPixmap*" name="pixmap" />
+ </parameters>
+ </signal>
+ <signal name="MoveFocusOutOfApplet" cname="move_focus_out_of_applet" when="LAST" field_name="move_focus_out_of_applet">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="PanelApplet*" name="frame" />
+ <parameter type="GtkDirectionType" name="direction" />
+ </parameters>
+ </signal>
+ <method name="AddPreferences" cname="panel_applet_add_preferences">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="schema_dir" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="FactoryMain" cname="panel_applet_factory_main" shared="true">
+ <return-type type="int" />
+ <parameters>
+ <parameter type="const-gchar*" name="iid" />
+ <parameter type="GType" name="applet_type" />
+ <parameter type="PanelAppletFactoryCallback" name="callback" />
+ <parameter type="gpointer" name="data" />
+ </parameters>
+ </method>
+ <method name="FactoryMainClosure" cname="panel_applet_factory_main_closure" shared="true">
+ <return-type type="int" />
+ <parameters>
+ <parameter type="const-gchar*" name="iid" />
+ <parameter type="GType" name="applet_type" />
+ <parameter type="GClosure*" name="closure" />
+ </parameters>
+ </method>
+ <method name="GconfGetBool" cname="panel_applet_gconf_get_bool">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfGetFloat" cname="panel_applet_gconf_get_float">
+ <return-type type="gdouble" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfGetFullKey" cname="panel_applet_gconf_get_full_key">
+ <return-type type="gchar*" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ </parameters>
+ </method>
+ <method name="GconfGetInt" cname="panel_applet_gconf_get_int">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfGetList" cname="panel_applet_gconf_get_list">
+ <return-type type="GSList*" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="GConfValueType" name="list_type" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfGetString" cname="panel_applet_gconf_get_string">
+ <return-type type="gchar*" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfGetValue" cname="panel_applet_gconf_get_value">
+ <return-type type="GConfValue*" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfSetBool" cname="panel_applet_gconf_set_bool">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="gboolean" name="the_bool" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfSetFloat" cname="panel_applet_gconf_set_float">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="gdouble" name="the_float" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfSetInt" cname="panel_applet_gconf_set_int">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="gint" name="the_int" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfSetList" cname="panel_applet_gconf_set_list">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="GConfValueType" name="list_type" />
+ <parameter type="GSList*" name="list" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfSetString" cname="panel_applet_gconf_set_string">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="const-gchar*" name="the_string" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GconfSetValue" cname="panel_applet_gconf_set_value">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="key" />
+ <parameter type="GConfValue*" name="value" />
+ <parameter type="GError**" name="opt_error" />
+ </parameters>
+ </method>
+ <method name="GetBackground" cname="panel_applet_get_background">
+ <return-type type="PanelAppletBackgroundType" />
+ <parameters>
+ <parameter type="GdkColor*" name="color" />
+ <parameter type="GdkPixmap**" name="pixmap" />
+ </parameters>
+ </method>
+ <method name="GetControl" cname="panel_applet_get_control">
+ <return-type type="BonoboControl*" />
+ </method>
+ <method name="GetFlags" cname="panel_applet_get_flags">
+ <return-type type="PanelAppletFlags" />
+ </method>
+ <method name="GetLockedDown" cname="panel_applet_get_locked_down">
+ <return-type type="gboolean" />
+ </method>
+ <method name="GetOrient" cname="panel_applet_get_orient">
+ <return-type type="PanelAppletOrient" />
+ </method>
+ <method name="GetPopupComponent" cname="panel_applet_get_popup_component">
+ <return-type type="BonoboUIComponent*" />
+ </method>
+ <method name="GetPreferencesKey" cname="panel_applet_get_preferences_key">
+ <return-type type="gchar*" />
+ </method>
+ <method name="GetSize" cname="panel_applet_get_size">
+ <return-type type="guint" />
+ </method>
+ <method name="GetType" cname="panel_applet_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <constructor cname="panel_applet_new" />
+ <method name="RequestFocus" cname="panel_applet_request_focus">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="guint32" name="timestamp" />
+ </parameters>
+ </method>
+ <method name="SetBackgroundWidget" cname="panel_applet_set_background_widget">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GtkWidget*" name="widget" />
+ </parameters>
+ </method>
+ <method name="SetFlags" cname="panel_applet_set_flags">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="PanelAppletFlags" name="flags" />
+ </parameters>
+ </method>
+ <method name="SetSizeHints" cname="panel_applet_set_size_hints">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-int*" name="size_hints" />
+ <parameter type="int" name="n_elements" />
+ <parameter type="int" name="base_size" />
+ </parameters>
+ </method>
+ <method name="SetupMenu" cname="panel_applet_setup_menu">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="xml" />
+ <parameter type="const-BonoboUIVerb*" name="verb_list" />
+ <parameter type="gpointer" name="user_data" />
+ </parameters>
+ </method>
+ <method name="SetupMenuFromFile" cname="panel_applet_setup_menu_from_file">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="const-gchar*" name="opt_datadir" />
+ <parameter type="const-gchar*" name="file" />
+ <parameter type="const-gchar*" name="opt_app_name" />
+ <parameter type="const-BonoboUIVerb*" name="verb_list" />
+ <parameter type="gpointer" name="user_data" />
+ </parameters>
+ </method>
+ <method name="ShlibFactory" cname="panel_applet_shlib_factory" shared="true">
+ <return-type type="Bonobo_Unknown" />
+ <parameters>
+ <parameter type="const-char*" name="iid" />
+ <parameter type="GType" name="applet_type" />
+ <parameter type="PortableServer_POA" name="poa" />
+ <parameter type="gpointer" name="impl_ptr" />
+ <parameter type="PanelAppletFactoryCallback" name="callback" />
+ <parameter type="gpointer" name="user_data" />
+ <parameter type="CORBA_Environment*" name="ev" />
+ </parameters>
+ </method>
+ <method name="ShlibFactoryClosure" cname="panel_applet_shlib_factory_closure" shared="true">
+ <return-type type="Bonobo_Unknown" />
+ <parameters>
+ <parameter type="const-char*" name="iid" />
+ <parameter type="GType" name="applet_type" />
+ <parameter type="PortableServer_POA" name="poa" />
+ <parameter type="gpointer" name="impl_ptr" />
+ <parameter type="GClosure*" name="closure" />
+ <parameter type="CORBA_Environment*" name="ev" />
+ </parameters>
+ </method>
+ </object>
+ <alias name="PanelAppletOrient" cname="PanelAppletOrient" type="GNOME_Vertigo_PanelOrient" />
+ </namespace>
+</api>
View
12 gnomepanel/gnome-panel-sharp-2.24.pc.in
@@ -0,0 +1,12 @@
+prefix=${pcfiledir}/../..
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+gapidir=${prefix}/share/gnome-panel-sharp/2.24
+assemblies_dir=${libdir}/mono/gnome-panel-sharp-2.24
+
+Name: GnomePanel#
+Description: GnomePanel# - libpanelapplet .NET Binding
+Version: @VERSION@
+Requires: gtk-sharp-2.0
+Cflags: -I:${gapidir}/gnome-panel-api.xml
+Libs: -r:${assemblies_dir}/gnome-panel-sharp.dll
View
3 gnomepanel/gnome-panel-sharp.dll.config.in
@@ -0,0 +1,3 @@
+<configuration>
+ <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0@LIB_PREFIX@.0@LIB_SUFFIX@"/>
+</configuration>
View
12 gnomepanel/metadata
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<metadata>
+ <attr path="/api/namespace/object" name="disable_gtype">1</attr>
+ <attr path="/api/namespace/object[@cname='PanelAppletShell']" name="hidden">1</attr>
+ <attr path="/api/namespace/object[@cname='PanelApplet']/method[@cname='panel_applet_factory_main']" name="hidden">1</attr>
+ <attr path="/api/namespace/object[@cname='PanelApplet']/method[@cname='panel_applet_factory_main_closure']" name="hidden">1</attr>
+ <attr path="/api/namespace/object[@cname='PanelApplet']/method[@cname='panel_applet_get_flags']" name="new_flag">1</attr>
+ <attr path="/api/namespace/object[@cname='PanelApplet']/method[@cname='panel_applet_set_flasg']" name="new_flag">1</attr>
+ <attr path="/api/namespace/object[@cname='PanelApplet']" name="abstract">1</attr>
+</metadata>
+
+
View
58 gnomeprint/Font.custom
@@ -0,0 +1,58 @@
+// Font.custom - customizations to Gnome.Font
+//
+// Authors: Mike Kestner <mkestner@ximian.com>
+//
+// Copyright (c) 2004 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.
+
+
+ [DllImport("gnomeprint-2-2")]
+ static extern IntPtr gnome_font_list ();
+
+ public static string[] List ()
+ {
+ IntPtr list_ptr = gnome_font_list ();
+ 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;
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern IntPtr gnome_font_style_list (IntPtr family);
+
+ public static string[] StyleList (string family)
+ {
+ IntPtr nfamily = GLib.Marshaller.StringToPtrGStrdup (family);
+ IntPtr list_ptr = gnome_font_style_list (nfamily);
+ GLib.Marshaller.Free (nfamily);
+ 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;
+ }
+
+
View
47 gnomeprint/FontFamily.cs
@@ -0,0 +1,47 @@
+// FontFamily.cs - customizations to Gnome.FontFamily
+//
+// Authors: Mike Kestner <mkestner@ximian.com>
+//
+// Copyright (c) 2004 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.
+
+namespace Gnome {
+
+ using System;
+ using System.Runtime.InteropServices;
+
+ public class FontFamily {
+
+ private FontFamily () {}
+
+ [DllImport("gnomeprint-2-2")]
+ static extern IntPtr gnome_font_family_list ();
+
+ public static string[] List ()
+ {
+ IntPtr list_ptr = gnome_font_family_list ();
+ 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;
+ }
+ }
+}
View
29 gnomeprint/Makefile.am
@@ -0,0 +1,29 @@
+if ENABLE_GNOME_PRINT
+pkg = gnome-print
+pkgversion = 2.18
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gnome-print-sharp-2.18.pc
+else
+pkg =
+pkgversion =
+endif
+
+API_VERSION=2.18.0.0
+INCLUDE_API =
+METADATA = metadata
+references =
+
+sources = \
+ FontFamily.cs
+
+customs = \
+ Font.custom \
+ Print.custom \
+ PrintContext.custom \
+ PrintDialog.custom \
+ PrintJob.custom
+
+add_dist = gnome-print-sharp-2.18.pc.in gnome-print-sharp.dll.config.in
+
+include ../Makefile.include
+
View
42 gnomeprint/Print.custom
@@ -0,0 +1,42 @@
+// Pixbuf.custom - Gdk Pixbuf class customizations
+//
+// Authors:
+// Larry Ewing <lewing@ximian.com
+//
+// (C) 2004 Novell, Inc. (Larry Ewing)
+//
+// This code is inserted after the automatically generated code
+//
+// 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.
+
+
+ [DllImport("gnomeprint-2-2")]
+ static extern unsafe int gnome_print_rgbimage(IntPtr pc, byte * data, int width, int height, int rowstride);
+
+ [DllImport("gnomeprint-2-2")]
+ static extern unsafe int gnome_print_rgbaimage(IntPtr pc, byte * data, int width, int height, int rowstride);
+
+ public static int Pixbuf (Gnome.PrintContext pc, Gdk.Pixbuf image) {
+ int ret = 0;
+
+ unsafe {
+ if (image.NChannels == 4)
+ ret = gnome_print_rgbaimage(pc.Handle, (byte *) image.Pixels, image.Width, image.Height, image.Rowstride);
+ else
+ ret = gnome_print_rgbimage(pc.Handle, (byte *) image.Pixels, image.Width, image.Height, image.Rowstride);
+ }
+
+ return ret;
+ }
View
284 gnomeprint/PrintContext.custom
@@ -0,0 +1,284 @@
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_beginpage (IntPtr raw, IntPtr name);
+
+ public PrintReturnCode BeginPage (string name) {
+ IntPtr native = GLib.Marshaller.StringToPtrGStrdup (name);
+ int result = gnome_print_beginpage (Handle, native);
+ GLib.Marshaller.Free (native);
+ return (PrintReturnCode) result;
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_showpage (IntPtr raw);
+
+ public PrintReturnCode ShowPage () {
+ return (PrintReturnCode)gnome_print_showpage (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_end_doc (IntPtr raw);
+
+ public PrintReturnCode EndDoc () {
+ return (PrintReturnCode)gnome_print_end_doc (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_gsave (IntPtr raw);
+
+ public PrintReturnCode SaveGraphicState () {
+ return (PrintReturnCode)gnome_print_gsave (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_grestore (IntPtr raw);
+
+ public PrintReturnCode RestoreGraphicState () {
+ return (PrintReturnCode)gnome_print_grestore (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_newpath (IntPtr raw);
+
+ public PrintReturnCode NewPath () {
+ return (PrintReturnCode)gnome_print_newpath (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_moveto (IntPtr raw, double x, double y);
+
+ public PrintReturnCode MoveTo (double x, double y) {
+ return (PrintReturnCode)gnome_print_moveto (Handle, x, y);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_lineto (IntPtr raw, double x, double y);
+
+ public PrintReturnCode LineTo (double x, double y) {
+ return (PrintReturnCode)gnome_print_lineto (Handle, x, y);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_curveto (IntPtr raw, double x1, double y1, double x2, double y2, double x3, double y3);
+
+ public PrintReturnCode CurveTo (double x1, double y1, double x2, double y2, double x3, double y3) {
+ return (PrintReturnCode)gnome_print_curveto (Handle, x1, y1, x2, y2, x3, y3);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_closepath (IntPtr raw);
+
+ public PrintReturnCode ClosePath () {
+ return (PrintReturnCode)gnome_print_closepath (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_strokepath (IntPtr raw);
+
+ public PrintReturnCode StrokePath () {
+ return (PrintReturnCode)gnome_print_strokepath (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_bpath (IntPtr raw, ref Art.Bpath bpath, bool append);
+
+ public PrintReturnCode Bpath (Art.Bpath bpath, bool append) {
+ return (PrintReturnCode)gnome_print_bpath (Handle, ref bpath, append);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_vpath (IntPtr raw, ref Art.Vpath vpath, bool append);
+
+ public PrintReturnCode Vpath (Art.Vpath vpath, bool append) {
+ return (PrintReturnCode)gnome_print_vpath (Handle, ref vpath, append);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_arcto (IntPtr raw, double x, double y, double radius, double angle1, double angle2, int direction);
+
+ public PrintReturnCode ArcTo (double x, double y, double radius, double angle1, double angle2, int direction) {
+ return (PrintReturnCode)gnome_print_arcto (Handle, x, y, radius, angle1, angle2, direction);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_setrgbcolor (IntPtr raw, double r, double g, double b);
+
+ public PrintReturnCode SetRgbColor (double r, double g, double b) {
+ return (PrintReturnCode)gnome_print_setrgbcolor (Handle, r, g, b);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_setopacity (IntPtr raw, double opacity);
+
+ public PrintReturnCode SetOpacity (double opacity) {
+ return (PrintReturnCode)gnome_print_setopacity (Handle, opacity);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_setlinewidth (IntPtr raw, double width);
+
+ public PrintReturnCode SetLineWidth (double width) {
+ return (PrintReturnCode)gnome_print_setlinewidth (Handle, width);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_setmiterlimit (IntPtr raw, double limit);
+
+ public PrintReturnCode SetMiterLimit (double limit) {
+ return (PrintReturnCode)gnome_print_setmiterlimit (Handle, limit);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_setlinejoin (IntPtr raw, int jointype);
+
+ public PrintReturnCode SetLineJoin (int jointype) {
+ return (PrintReturnCode)gnome_print_setlinejoin (Handle, jointype);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_setlinecap (IntPtr raw, int captype);
+
+ public PrintReturnCode SetLineCap (int captype) {
+ return (PrintReturnCode)gnome_print_setlinecap (Handle, captype);
+ }
+
+ // FIXME!
+ /*[DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_setdash (IntPtr raw, int n_values, IntPtr value, double offset);
+
+ public PrintReturnCode SetDash (double values[], double offset) {
+ return (PrintReturnCode)gnome_print_setdash (Handle, values.Length, values, offset);
+ }*/
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_setfont (IntPtr raw, IntPtr font);
+
+ public PrintReturnCode SetFont (Font font) {
+ return (PrintReturnCode)gnome_print_setfont (Handle, font == null ? IntPtr.Zero : font.Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_clip (IntPtr raw);
+
+ public PrintReturnCode Clip () {
+ return (PrintReturnCode)gnome_print_clip (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_eoclip (IntPtr raw);
+
+ public PrintReturnCode EvenOddClip () {
+ return (PrintReturnCode)gnome_print_eoclip (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_scale (IntPtr raw, double sx, double sy);
+
+ public PrintReturnCode Scale (double sx, double sy) {
+ return (PrintReturnCode)gnome_print_scale (Handle, sx, sy);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_rotate (IntPtr raw, double theta);
+
+ public PrintReturnCode Rotate (double theta) {
+ return (PrintReturnCode)gnome_print_rotate (Handle, theta);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_translate (IntPtr raw, double x, double y);
+
+ public PrintReturnCode Translate (double x, double y) {
+ return (PrintReturnCode)gnome_print_translate (Handle, x, y);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_fill (IntPtr raw);
+
+ public PrintReturnCode Fill () {
+ return (PrintReturnCode)gnome_print_fill (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_eofill (IntPtr raw);
+
+ public PrintReturnCode EvenOddFill () {
+ return (PrintReturnCode)gnome_print_eofill (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_stroke (IntPtr raw);
+
+ public PrintReturnCode Stroke () {
+ return (PrintReturnCode)gnome_print_stroke (Handle);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_show (IntPtr raw, IntPtr text);
+
+ public PrintReturnCode Show (string text) {
+ IntPtr native = GLib.Marshaller.StringToPtrGStrdup (text);
+ int result = gnome_print_show (Handle, native);
+ GLib.Marshaller.Free (native);
+ return (PrintReturnCode) result;
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_show_sized (IntPtr raw, IntPtr text, int bytes);
+
+ public PrintReturnCode ShowSized (string text, int bytes) {
+ IntPtr native = GLib.Marshaller.StringToPtrGStrdup (text);
+ int result = gnome_print_show_sized (Handle, native, bytes);
+ GLib.Marshaller.Free (native);
+ return (PrintReturnCode) result;
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_grayimage (IntPtr raw, IntPtr data, int width, int height, int rowstride);
+
+ public PrintReturnCode GrayImage (string data, int width, int height, int rowstride) {
+ IntPtr native = GLib.Marshaller.StringToPtrGStrdup (data);
+ int result = gnome_print_grayimage (Handle, native, width, height, rowstride);
+ GLib.Marshaller.Free (native);
+ return (PrintReturnCode) result;
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_rgbimage (IntPtr raw, IntPtr data, int width, int height, int rowstride);
+
+ public PrintReturnCode RgbImage (string data, int width, int height, int rowstride) {
+ IntPtr native = GLib.Marshaller.StringToPtrGStrdup (data);
+ int result = gnome_print_rgbimage (Handle, native, width, height, rowstride);
+ GLib.Marshaller.Free (native);
+ return (PrintReturnCode) result;
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_rgbaimage (IntPtr raw, IntPtr data, int width, int height, int rowstride);
+
+ public PrintReturnCode RgbaImage (string data, int width, int height, int rowstride) {
+ IntPtr native = GLib.Marshaller.StringToPtrGStrdup (data);
+ int result = gnome_print_rgbaimage (Handle, native, width, height, rowstride);
+ GLib.Marshaller.Free (native);
+ return (PrintReturnCode) result;
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_line_stroked (IntPtr raw, double x0, double y0, double x1, double y1);
+
+ public PrintReturnCode LineStroked (double x0, double y0, double x1, double y1) {
+ return (PrintReturnCode)gnome_print_line_stroked (Handle, x0, y0, x1, y1);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_rect_stroked (IntPtr raw, double x, double y, double width, double height);
+
+ public PrintReturnCode RectStroked (double x, double y, double width, double height) {
+ return (PrintReturnCode)gnome_print_rect_stroked (Handle, x, y, width, height);
+ }
+
+ [DllImport("gnomeprint-2-2")]
+ static extern int gnome_print_rect_filled (IntPtr raw, double x, double y, double width, double height);
+
+ public PrintReturnCode RectFilled (double x, double y, double width, double height) {
+ return (PrintReturnCode)gnome_print_rect_filled (Handle, x, y, width, height);
+ }
View
27 gnomeprint/PrintDialog.custom
@@ -0,0 +1,27 @@
+//
+// PrintDialog.custom - customizations
+//
+// Author: Martin Willemoes Hansen <mwh@sysrq.dk>
+//
+// Copyright (C) 2003 Martin Willemoes Hansen
+//
+// This code is inserted after the automatically generated code.
+//
+//
+// 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 PrintDialog (Gnome.PrintJob gpj, string title)
+ : this (gpj, title, 0) {}
View
25 gnomeprint/PrintJob.custom
@@ -0,0 +1,25 @@
+//
+// PrintJob.custom - customizations
+//
+// Author: Martin Willemoes Hansen <mwh@sysrq.dk>
+//
+// Copyright (C) 2003 2004 Martin Willemoes Hansen
+//
+// This code is inserted after the automatically generated code.
+//
+//
+// 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 PrintJob() : this (PrintConfig.Default()) {}
View
2,230 gnomeprint/gnome-print-api.raw
@@ -0,0 +1,2230 @@
+<?xml version="1.0"?>
+<api>
+ <!--
+
+ This file was automatically generated.
+ Please DO NOT MODIFY THIS FILE, modify .metadata files instead.
+
+-->
+ <namespace name="Gnome" library="gnomeprint-2-2">
+ <enum name="FontWeight" cname="GnomeFontWeight" type="enum">
+ <member cname="GNOME_FONT_LIGHTEST" name="Lightest" value="100" />
+ <member cname="GNOME_FONT_EXTRA_LIGHT" name="ExtraLight" value="100" />
+ <member cname="GNOME_FONT_THIN" name="Thin" value="200" />
+ <member cname="GNOME_FONT_LIGHT" name="Light" value="300" />
+ <member cname="GNOME_FONT_BOOK" name="Book" value="400" />
+ <member cname="GNOME_FONT_REGULAR" name="Regular" value="400" />
+ <member cname="GNOME_FONT_MEDIUM" name="Medium" value="500" />
+ <member cname="GNOME_FONT_SEMI" name="Semi" value="600" />
+ <member cname="GNOME_FONT_DEMI" name="Demi" value="600" />
+ <member cname="GNOME_FONT_BOLD" name="Bold" value="700" />
+ <member cname="GNOME_FONT_HEAVY" name="Heavy" value="900" />
+ <member cname="GNOME_FONT_EXTRABOLD" name="Extrabold" value="900" />
+ <member cname="GNOME_FONT_BLACK" name="Black" value="1000" />
+ <member cname="GNOME_FONT_EXTRABLACK" name="Extrablack" value="1100" />
+ <member cname="GNOME_FONT_HEAVIEST" name="Heaviest" value="1100" />
+ </enum>
+ <enum name="PrintFilterError" cname="GnomePrintFilterError" type="enum">
+ <member cname="GNOME_PRINT_FILTER_ERROR_SYNTAX" name="Syntax" />
+ </enum>
+ <enum name="PrintReturnCode" cname="GnomePrintReturnCode" type="enum">
+ <member cname="GNOME_PRINT_OK" name="Ok" />
+ <member cname="GNOME_PRINT_ERROR_UNKNOWN" name="ErrorUnknown" value="-1" />
+ <member cname="GNOME_PRINT_ERROR_BADVALUE" name="ErrorBadvalue" value="-2" />
+ <member cname="GNOME_PRINT_ERROR_NOCURRENTPOINT" name="ErrorNocurrentpoint" value="-3" />
+ <member cname="GNOME_PRINT_ERROR_NOCURRENTPATH" name="ErrorNocurrentpath" value="-4" />
+ <member cname="GNOME_PRINT_ERROR_TEXTCORRUPT" name="ErrorTextcorrupt" value="-5" />
+ <member cname="GNOME_PRINT_ERROR_BADCONTEXT" name="ErrorBadcontext" value="-6" />
+ <member cname="GNOME_PRINT_ERROR_NOPAGE" name="ErrorNopage" value="-7" />
+ <member cname="GNOME_PRINT_ERROR_NOMATCH" name="ErrorNomatch" value="-8" />
+ </enum>
+ <enum name="PrintUnitBase" cname="GnomePrintUnitBase" type="flags">
+ <member cname="GNOME_PRINT_UNIT_DIMENSIONLESS" name="Dimensionless" value="1 &lt;&lt; 0" />
+ <member cname="GNOME_PRINT_UNIT_ABSOLUTE" name="Absolute" value="1 &lt;&lt; 1" />
+ <member cname="GNOME_PRINT_UNIT_DEVICE" name="Device" value="1 &lt;&lt; 2" />
+ <member cname="GNOME_PRINT_UNIT_USERSPACE" name="Userspace" value="1 &lt;&lt; 3" />
+ </enum>
+ <object name="Font" cname="GnomeFont" parent="GObject">
+ <property name="FontName" cname="FontName" type="gchar*" readable="true" />
+ <property name="FullName" cname="FullName" type="gchar*" readable="true" />
+ <property name="FamilyName" cname="FamilyName" type="gchar*" readable="true" />
+ <property name="Weight" cname="Weight" type="gchar*" readable="true" />
+ <property name="ItalicAngle" cname="ItalicAngle" type="gdouble" readable="true" />
+ <property name="IsFixedPitch" cname="IsFixedPitch" type="gboolean" readable="true" />
+ <property name="FontBBox" cname="FontBBox" type="gpointer" readable="true" />
+ <property name="UnderlinePosition" cname="UnderlinePosition" type="gdouble" readable="true" />
+ <property name="UnderlineThickness" cname="UnderlineThickness" type="gdouble" readable="true" />
+ <property name="Version" cname="Version" type="gchar*" readable="true" />
+ <property name="CapHeight" cname="CapHeight" type="gdouble" readable="true" />
+ <property name="XHeight" cname="XHeight" type="gdouble" readable="true" />
+ <property name="Ascender" cname="Ascender" type="gdouble" readable="true" />
+ <property name="Descender" cname="Descender" type="gdouble" readable="true" />
+ <property name="Size" cname="Size" type="gdouble" readable="true" />
+ <method name="FamilyList" cname="gnome_font_family_list" shared="true">
+ <return-type type="GList*" />
+ </method>
+ <method name="FamilyListFree" cname="gnome_font_family_list_free" shared="true">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GList*" name="fontlist" />
+ </parameters>
+ </method>
+ <method name="Find" cname="gnome_font_find" shared="true">
+ <return-type type="GnomeFont*" />
+ <parameters>
+ <parameter type="const-guchar*" name="name" />
+ <parameter type="gdouble" name="size" />
+ </parameters>
+ </method>
+ <method name="FindClosest" cname="gnome_font_find_closest" shared="true">
+ <return-type type="GnomeFont*" />
+ <parameters>
+ <parameter type="const-guchar*" name="name" />
+ <parameter type="gdouble" name="size" />
+ </parameters>
+ </method>
+ <method name="FindClosestFromFullName" cname="gnome_font_find_closest_from_full_name" shared="true">
+ <return-type type="GnomeFont*" />
+ <parameters>
+ <parameter type="const-guchar*" name="string" />
+ </parameters>
+ </method>
+ <method name="FindClosestFromWeightSlant" cname="gnome_font_find_closest_from_weight_slant" shared="true">
+ <return-type type="GnomeFont*" />
+ <parameters>
+ <parameter type="const-guchar*" name="family" />
+ <parameter type="GnomeFontWeight" name="weight" />
+ <parameter type="gboolean" name="italic" />
+ <parameter type="gdouble" name="size" />
+ </parameters>
+ </method>
+ <method name="FindFromFilename" cname="gnome_font_find_from_filename" shared="true">
+ <return-type type="GnomeFont*" />
+ <parameters>
+ <parameter type="const-guchar*" name="filename" />
+ <parameter type="gint" name="index_" />
+ <parameter type="gdouble" name="size" />
+ </parameters>
+ </method>
+ <method name="FindFromFullName" cname="gnome_font_find_from_full_name" shared="true">
+ <return-type type="GnomeFont*" />
+ <parameters>
+ <parameter type="const-guchar*" name="string" />
+ </parameters>
+ </method>
+ <method name="GetAscender" cname="gnome_font_get_ascender">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetClosestPangoFont" cname="gnome_font_get_closest_pango_font">
+ <return-type type="PangoFont*" />
+ <parameters>
+ <parameter type="PangoFontMap*" name="map" />
+ <parameter type="gdouble" name="dpi" />
+ </parameters>
+ </method>
+ <method name="GetDescender" cname="gnome_font_get_descender">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetFace" cname="gnome_font_get_face">
+ <return-type type="GnomeFontFace*" />
+ </method>
+ <method name="GetFamilyName" cname="gnome_font_get_family_name">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetFullName" cname="gnome_font_get_full_name">
+ <return-type type="guchar*" />
+ </method>
+ <method name="GetGlyphKerning" cname="gnome_font_get_glyph_kerning">
+ <return-type type="gdouble" />
+ <parameters>
+ <parameter type="gint" name="glyph1" />
+ <parameter type="gint" name="glyph2" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdadvance" cname="gnome_font_get_glyph_stdadvance">
+ <return-type type="ArtPoint*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ <parameter type="ArtPoint*" name="advance" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdbbox" cname="gnome_font_get_glyph_stdbbox">
+ <return-type type="ArtDRect*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ <parameter type="ArtDRect*" name="bbox" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdkerning" cname="gnome_font_get_glyph_stdkerning">
+ <return-type type="ArtPoint*" />
+ <parameters>
+ <parameter type="gint" name="glyph0" />
+ <parameter type="gint" name="glyph1" />
+ <parameter type="ArtPoint*" name="kerning" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdoutline" cname="gnome_font_get_glyph_stdoutline">
+ <return-type type="const-ArtBpath*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ </parameters>
+ </method>
+ <method name="GetGlyphWidth" cname="gnome_font_get_glyph_width">
+ <return-type type="gdouble" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ </parameters>
+ </method>
+ <method name="GetName" cname="gnome_font_get_name">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetPangoDescription" cname="gnome_font_get_pango_description">
+ <return-type type="PangoFontDescription*" />
+ <parameters>
+ <parameter type="gdouble" name="dpi" />
+ </parameters>
+ </method>
+ <method name="GetPsName" cname="gnome_font_get_ps_name">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetRfont" cname="gnome_font_get_rfont">
+ <return-type type="GnomeRFont*" />
+ <parameters>
+ <parameter type="const-gdouble*" name="t" />
+ </parameters>
+ </method>
+ <method name="GetSize" cname="gnome_font_get_size">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetSpeciesName" cname="gnome_font_get_species_name">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetType" cname="gnome_font_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <method name="GetUnderlinePosition" cname="gnome_font_get_underline_position">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetUnderlineThickness" cname="gnome_font_get_underline_thickness">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetWidthUtf8" cname="gnome_font_get_width_utf8">
+ <return-type type="double" />
+ <parameters>
+ <parameter type="const-char*" name="s" />
+ </parameters>
+ </method>
+ <method name="GetWidthUtf8Sized" cname="gnome_font_get_width_utf8_sized">
+ <return-type type="double" />
+ <parameters>
+ <parameter type="const-char*" name="s" />
+ <parameter type="int" name="n" />
+ </parameters>
+ </method>
+ <method name="List" cname="gnome_font_list" shared="true">
+ <return-type type="GList*" />
+ </method>
+ <method name="ListFree" cname="gnome_font_list_free" shared="true">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GList*" name="fontlist" />
+ </parameters>
+ </method>
+ <method name="LookupDefault" cname="gnome_font_lookup_default">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="gint" name="unicode" />
+ </parameters>
+ </method>
+ <method name="StyleList" cname="gnome_font_style_list" shared="true">
+ <return-type type="GList*" />
+ <parameters>
+ <parameter type="const-guchar*" name="family" />
+ </parameters>
+ </method>
+ <method name="StyleListFree" cname="gnome_font_style_list_free" shared="true">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GList*" name="styles" />
+ </parameters>
+ </method>
+ </object>
+ <object name="FontFace" cname="GnomeFontFace" parent="GObject">
+ <property name="FontName" cname="FontName" type="gchar*" readable="true" />
+ <property name="FullName" cname="FullName" type="gchar*" readable="true" />
+ <property name="FamilyName" cname="FamilyName" type="gchar*" readable="true" />
+ <property name="Weight" cname="Weight" type="gchar*" readable="true" />
+ <property name="ItalicAngle" cname="ItalicAngle" type="gdouble" readable="true" />
+ <property name="IsFixedPitch" cname="IsFixedPitch" type="gboolean" readable="true" />
+ <property name="FontBBox" cname="FontBBox" type="gpointer" readable="true" />
+ <property name="UnderlinePosition" cname="UnderlinePosition" type="gdouble" readable="true" />
+ <property name="UnderlineThickness" cname="UnderlineThickness" type="gdouble" readable="true" />
+ <property name="Version" cname="Version" type="gchar*" readable="true" />
+ <property name="CapHeight" cname="CapHeight" type="gdouble" readable="true" />
+ <property name="XHeight" cname="XHeight" type="gdouble" readable="true" />
+ <property name="Ascender" cname="Ascender" type="gdouble" readable="true" />
+ <property name="Descender" cname="Descender" type="gdouble" readable="true" />
+ <method name="Find" cname="gnome_font_face_find" shared="true">
+ <return-type type="GnomeFontFace*" />
+ <parameters>
+ <parameter type="const-guchar*" name="name" />
+ </parameters>
+ </method>
+ <method name="FindClosest" cname="gnome_font_face_find_closest" shared="true">
+ <return-type type="GnomeFontFace*" />
+ <parameters>
+ <parameter type="const-guchar*" name="name" />
+ </parameters>
+ </method>
+ <method name="FindClosestFromPangoDescription" cname="gnome_font_face_find_closest_from_pango_description" shared="true">
+ <return-type type="GnomeFontFace*" />
+ <parameters>
+ <parameter type="const-PangoFontDescription*" name="desc" />
+ </parameters>
+ </method>
+ <method name="FindClosestFromPangoFont" cname="gnome_font_face_find_closest_from_pango_font" shared="true">
+ <return-type type="GnomeFontFace*" />
+ <parameters>
+ <parameter type="PangoFont*" name="pfont" />
+ </parameters>
+ </method>
+ <method name="FindClosestFromWeightSlant" cname="gnome_font_face_find_closest_from_weight_slant" shared="true">
+ <return-type type="GnomeFontFace*" />
+ <parameters>
+ <parameter type="const-guchar*" name="family" />
+ <parameter type="GnomeFontWeight" name="weight" />
+ <parameter type="gboolean" name="italic" />
+ </parameters>
+ </method>
+ <method name="FindFromFamilyAndStyle" cname="gnome_font_face_find_from_family_and_style" shared="true">
+ <return-type type="GnomeFontFace*" />
+ <parameters>
+ <parameter type="const-guchar*" name="family" />
+ <parameter type="const-guchar*" name="style" />
+ </parameters>
+ </method>
+ <method name="FindFromFilename" cname="gnome_font_face_find_from_filename" shared="true">
+ <return-type type="GnomeFontFace*" />
+ <parameters>
+ <parameter type="const-guchar*" name="filename" />
+ <parameter type="gint" name="index_" />
+ </parameters>
+ </method>
+ <method name="GetAscender" cname="gnome_font_face_get_ascender">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetDescender" cname="gnome_font_face_get_descender">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetFamilyName" cname="gnome_font_face_get_family_name">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetFont" cname="gnome_font_face_get_font">
+ <return-type type="GnomeFont*" />
+ <parameters>
+ <parameter type="gdouble" name="size" />
+ <parameter type="gdouble" name="xres" />
+ <parameter type="gdouble" name="yres" />
+ </parameters>
+ </method>
+ <method name="GetFontDefault" cname="gnome_font_face_get_font_default">
+ <return-type type="GnomeFont*" />
+ <parameters>
+ <parameter type="gdouble" name="size" />
+ </parameters>
+ </method>
+ <method name="GetGlyphKerning" cname="gnome_font_face_get_glyph_kerning">
+ <return-type type="gdouble" />
+ <parameters>
+ <parameter type="gint" name="glyph1" />
+ <parameter type="gint" name="glyph2" />
+ </parameters>
+ </method>
+ <method name="GetGlyphPsName" cname="gnome_font_face_get_glyph_ps_name">
+ <return-type type="const-guchar*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdadvance" cname="gnome_font_face_get_glyph_stdadvance">
+ <return-type type="ArtPoint*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ <parameter type="ArtPoint*" name="advance" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdbbox" cname="gnome_font_face_get_glyph_stdbbox">
+ <return-type type="ArtDRect*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ <parameter type="ArtDRect*" name="bbox" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdkerning" cname="gnome_font_face_get_glyph_stdkerning">
+ <return-type type="ArtPoint*" />
+ <parameters>
+ <parameter type="gint" name="glyph0" />
+ <parameter type="gint" name="glyph1" />
+ <parameter type="ArtPoint*" name="kerning" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdoutline" cname="gnome_font_face_get_glyph_stdoutline">
+ <return-type type="const-ArtBpath*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ </parameters>
+ </method>
+ <method name="GetGlyphWidth" cname="gnome_font_face_get_glyph_width">
+ <return-type type="gdouble" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ </parameters>
+ </method>
+ <method name="GetName" cname="gnome_font_face_get_name">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetNumGlyphs" cname="gnome_font_face_get_num_glyphs">
+ <return-type type="gint" />
+ </method>
+ <method name="GetPsName" cname="gnome_font_face_get_ps_name">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetSample" cname="gnome_font_face_get_sample">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetSpeciesName" cname="gnome_font_face_get_species_name">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetStdbbox" cname="gnome_font_face_get_stdbbox">
+ <return-type type="const-ArtDRect*" />
+ </method>
+ <method name="GetType" cname="gnome_font_face_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <method name="GetUnderlinePosition" cname="gnome_font_face_get_underline_position">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetUnderlineThickness" cname="gnome_font_face_get_underline_thickness">
+ <return-type type="gdouble" />
+ </method>
+ <method name="GetWeightCode" cname="gnome_font_face_get_weight_code">
+ <return-type type="GnomeFontWeight" />
+ </method>
+ <method name="IsFixedWidth" cname="gnome_font_face_is_fixed_width">
+ <return-type type="gboolean" />
+ </method>
+ <method name="IsItalic" cname="gnome_font_face_is_italic">
+ <return-type type="gboolean" />
+ </method>
+ <method name="LookupDefault" cname="gnome_font_face_lookup_default">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="gint" name="unicode" />
+ </parameters>
+ </method>
+ </object>
+ <object name="PrintConfig" cname="GnomePrintConfig" parent="GObject">
+ <property name="Node" cname="node" type="GpaNode" readable="true" writeable="true" />
+ <method name="Default" cname="gnome_print_config_default" shared="true">
+ <return-type type="GnomePrintConfig*" />
+ </method>
+ <method name="Dump" cname="gnome_print_config_dump">
+ <return-type type="void" />
+ </method>
+ <method name="Dup" cname="gnome_print_config_dup">
+ <return-type type="GnomePrintConfig*" />
+ </method>
+ <method name="FromString" cname="gnome_print_config_from_string" shared="true">
+ <return-type type="GnomePrintConfig*" />
+ <parameters>
+ <parameter type="const-gchar*" name="str" />
+ <parameter type="guint" name="flags" />
+ </parameters>
+ </method>
+ <method name="Get" cname="gnome_print_config_get">
+ <return-type type="guchar*" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ </parameters>
+ </method>
+ <method name="GetBoolean" cname="gnome_print_config_get_boolean">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gboolean*" name="val" />
+ </parameters>
+ </method>
+ <method name="GetDouble" cname="gnome_print_config_get_double">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gdouble*" name="val" />
+ </parameters>
+ </method>
+ <method name="GetInt" cname="gnome_print_config_get_int">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gint*" name="val" />
+ </parameters>
+ </method>
+ <method name="GetLength" cname="gnome_print_config_get_length">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gdouble*" name="val" />
+ <parameter type="const-GnomePrintUnit**" name="unit" />
+ </parameters>
+ </method>
+ <method name="GetOption" cname="gnome_print_config_get_option">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="GnomePrintConfigOption*" name="options" />
+ <parameter type="gint*" name="arg3" />
+ </parameters>
+ </method>
+ <method name="GetPageSize" cname="gnome_print_config_get_page_size">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="gdouble*" name="width" />
+ <parameter type="gdouble*" name="height" />
+ </parameters>
+ </method>
+ <method name="GetTransform" cname="gnome_print_config_get_transform">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gdouble*" name="transform" />
+ </parameters>
+ </method>
+ <method name="GetType" cname="gnome_print_config_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <method name="InsertBoolean" cname="gnome_print_config_insert_boolean">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gboolean" name="def" />
+ </parameters>
+ </method>
+ <method name="InsertOptions" cname="gnome_print_config_insert_options">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="GnomePrintConfigOption*" name="options" />
+ <parameter type="const-gchar*" name="def" />
+ </parameters>
+ </method>
+ <method name="Ref" cname="gnome_print_config_ref">
+ <return-type type="GnomePrintConfig*" />
+ </method>
+ <method name="Set" cname="gnome_print_config_set">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="const-guchar*" name="value" />
+ </parameters>
+ </method>
+ <method name="SetBoolean" cname="gnome_print_config_set_boolean">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gboolean" name="val" />
+ </parameters>
+ </method>
+ <method name="SetDouble" cname="gnome_print_config_set_double">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gdouble" name="val" />
+ </parameters>
+ </method>
+ <method name="SetInt" cname="gnome_print_config_set_int">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gint" name="val" />
+ </parameters>
+ </method>
+ <method name="SetLength" cname="gnome_print_config_set_length">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-guchar*" name="key" />
+ <parameter type="gdouble" name="val" />
+ <parameter type="const-GnomePrintUnit*" name="unit" />
+ </parameters>
+ </method>
+ <method name="ToString" cname="gnome_print_config_to_string">
+ <return-type type="gchar*" />
+ <parameters>
+ <parameter type="guint" name="flags" />
+ </parameters>
+ </method>
+ <method name="Unref" cname="gnome_print_config_unref">
+ <return-type type="GnomePrintConfig*" />
+ </method>
+ </object>
+ <object name="PrintContext" cname="GnomePrintContext" parent="GObject">
+ <property name="Config" cname="config" type="GnomePrintConfig" readable="true" writeable="true" />
+ <property name="Transport" cname="transport" type="GnomePrintTransport" readable="true" writeable="true" />
+ <property name="Filter" cname="filter" type="GnomePrintFilter" readable="true" writeable="true" />
+ <method name="Close" cname="gnome_print_context_close">
+ <return-type type="gint" />
+ </method>
+ <method name="CreateTransport" cname="gnome_print_context_create_transport">
+ <return-type type="gint" />
+ </method>
+ <method name="GetType" cname="gnome_print_context_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <constructor cname="gnome_print_context_new">
+ <parameters>
+ <parameter type="GnomePrintConfig*" name="config" />
+ </parameters>
+ </constructor>
+ </object>
+ <object name="PrintFilter" cname="GnomePrintFilter" parent="GObject">
+ <field name="Priv" cname="priv" type="GnomePrintFilterPrivate*" />
+ <property name="SuppressEmptyPages" cname="suppress_empty_pages" type="gboolean" readable="true" writeable="true" />
+ <property name="Name" cname="name" type="gchar*" readable="true" />
+ <property name="Description" cname="description" type="gchar*" readable="true" />
+ <property name="Context" cname="context" type="GnomePrintContext" readable="true" writeable="true" />
+ <property name="Filters" cname="filters" type="value_array" readable="true" writeable="true" />
+ <property name="" cname="" type="class" />
+ <signal name="Changed" cname="changed" when="LAST" field_name="changed">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ </parameters>
+ </signal>
+ <signal name="PredecessorAdded" cname="predecessor_added" when="LAST" field_name="predecessor_added">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="GnomePrintFilter*" name="arg2" />
+ </parameters>
+ </signal>
+ <signal name="PredecessorRemoved" cname="predecessor_removed" when="LAST" field_name="predecessor_removed">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="GnomePrintFilter*" name="arg2" />
+ </parameters>
+ </signal>
+ <signal name="SuccessorAdded" cname="successor_added" when="LAST" field_name="successor_added">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="GnomePrintFilter*" name="arg2" />
+ </parameters>
+ </signal>
+ <signal name="SuccessorRemoved" cname="successor_removed" when="LAST" field_name="successor_removed">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="GnomePrintFilter*" name="arg2" />
+ </parameters>
+ </signal>
+ <virtual_method name="Reset" cname="reset">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Flush" cname="flush">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Beginpage" cname="beginpage">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="GnomePrintContext*" name="arg2" />
+ <parameter type="const-guchar*" name="arg3" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Showpage" cname="showpage">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Gsave" cname="gsave">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Grestore" cname="grestore">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Clip" cname="clip">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="const-ArtBpath*" name="arg2" />
+ <parameter type="ArtWindRule" name="arg3" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Fill" cname="fill">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="const-ArtBpath*" name="arg2" />
+ <parameter type="ArtWindRule" name="arg3" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Stroke" cname="stroke">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="const-ArtBpath*" name="arg2" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Image" cname="image">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="const-gdouble*" name="arg2" />
+ <parameter type="const-guchar*" name="arg3" />
+ <parameter type="gint" name="arg4" />
+ <parameter type="gint" name="arg5" />
+ <parameter type="gint" name="arg6" />
+ <parameter type="gint" name="arg7" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Glyphlist" cname="glyphlist">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="const-gdouble*" name="arg2" />
+ <parameter type="GnomeGlyphList*" name="arg3" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Setrgbcolor" cname="setrgbcolor">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="gdouble" name="arg2" />
+ <parameter type="gdouble" name="arg3" />
+ <parameter type="gdouble" name="arg4" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Setopacity" cname="setopacity">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="gdouble" name="arg2" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Setlinewidth" cname="setlinewidth">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ <parameter type="gdouble" name="arg2" />
+ </parameters>
+ </virtual_method>
+ <method name="AddFilter" cname="gnome_print_filter_add_filter">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ </parameters>
+ </method>
+ <method name="AppendPredecessor" cname="gnome_print_filter_append_predecessor">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="p" />
+ </parameters>
+ </method>
+ <method name="Beginpage" cname="gnome_print_filter_beginpage">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="arg1" />
+ <parameter type="const-guchar*" name="arg2" />
+ </parameters>
+ </method>
+ <method name="Changed" cname="gnome_print_filter_changed">
+ <return-type type="void" />
+ </method>
+ <method name="Clip" cname="gnome_print_filter_clip">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-ArtBpath*" name="arg1" />
+ <parameter type="ArtWindRule" name="arg2" />
+ </parameters>
+ </method>
+ <method name="CountFilters" cname="gnome_print_filter_count_filters">
+ <return-type type="guint" />
+ </method>
+ <method name="CountPredecessors" cname="gnome_print_filter_count_predecessors">
+ <return-type type="guint" />
+ </method>
+ <method name="CountSuccessors" cname="gnome_print_filter_count_successors">
+ <return-type type="guint" />
+ </method>
+ <method name="Description" cname="gnome_print_filter_description">
+ <return-type type="gchar*" />
+ </method>
+ <method name="ErrorQuark" cname="gnome_print_filter_error_quark" shared="true">
+ <return-type type="GQuark" />
+ </method>
+ <method name="Fill" cname="gnome_print_filter_fill">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-ArtBpath*" name="arg1" />
+ <parameter type="ArtWindRule" name="arg2" />
+ </parameters>
+ </method>
+ <method name="Flush" cname="gnome_print_filter_flush">
+ <return-type type="void" />
+ </method>
+ <method name="GetFilter" cname="gnome_print_filter_get_filter">
+ <return-type type="GnomePrintFilter*" />
+ <parameters>
+ <parameter type="guint" name="arg1" />
+ </parameters>
+ </method>
+ <method name="GetPredecessor" cname="gnome_print_filter_get_predecessor">
+ <return-type type="GnomePrintFilter*" />
+ <parameters>
+ <parameter type="guint" name="i" />
+ </parameters>
+ </method>
+ <method name="GetSuccessor" cname="gnome_print_filter_get_successor">
+ <return-type type="GnomePrintFilter*" />
+ <parameters>
+ <parameter type="guint" name="i" />
+ </parameters>
+ </method>
+ <method name="GetType" cname="gnome_print_filter_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <method name="Glyphlist" cname="gnome_print_filter_glyphlist">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-gdouble*" name="arg1" />
+ <parameter type="GnomeGlyphList*" name="arg2" />
+ </parameters>
+ </method>
+ <method name="Grestore" cname="gnome_print_filter_grestore">
+ <return-type type="gint" />
+ </method>
+ <method name="Gsave" cname="gnome_print_filter_gsave">
+ <return-type type="gint" />
+ </method>
+ <method name="Image" cname="gnome_print_filter_image">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-gdouble*" name="arg1" />
+ <parameter type="const-guchar*" name="arg2" />
+ <parameter type="gint" name="arg3" />
+ <parameter type="gint" name="arg4" />
+ <parameter type="gint" name="arg5" />
+ <parameter type="gint" name="arg6" />
+ </parameters>
+ </method>
+ <method name="IsPredecessor" cname="gnome_print_filter_is_predecessor">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="p" />
+ <parameter type="gboolean" name="indirect" />
+ </parameters>
+ </method>
+ <constructor cname="gnome_print_filter_new_from_description">
+ <parameters>
+ <parameter type="const-gchar*" name="arg1" />
+ <parameter type="GError**" name="arg2" />
+ </parameters>
+ </constructor>
+ <constructor cname="gnome_print_filter_new_from_module_name">
+ <parameters>
+ <parameter type="const-gchar*" name="module_name" />
+ <parameter type="const-gchar*" name="first_property_name" />
+ <parameter ellipsis="true" />
+ </parameters>
+ </constructor>
+ <method name="RemoveFilter" cname="gnome_print_filter_remove_filter">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="arg1" />
+ </parameters>
+ </method>
+ <method name="RemoveFilters" cname="gnome_print_filter_remove_filters">
+ <return-type type="void" />
+ </method>
+ <method name="RemovePredecessor" cname="gnome_print_filter_remove_predecessor">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomePrintFilter*" name="p" />
+ </parameters>
+ </method>
+ <method name="Reset" cname="gnome_print_filter_reset">
+ <return-type type="void" />
+ </method>
+ <method name="Setlinewidth" cname="gnome_print_filter_setlinewidth">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="gdouble" name="arg1" />
+ </parameters>
+ </method>
+ <method name="Setopacity" cname="gnome_print_filter_setopacity">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="gdouble" name="arg1" />
+ </parameters>
+ </method>
+ <method name="Setrgbcolor" cname="gnome_print_filter_setrgbcolor">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="gdouble" name="arg1" />
+ <parameter type="gdouble" name="arg2" />
+ <parameter type="gdouble" name="arg3" />
+ </parameters>
+ </method>
+ <method name="Showpage" cname="gnome_print_filter_showpage">
+ <return-type type="gint" />
+ </method>
+ <method name="Stroke" cname="gnome_print_filter_stroke">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-ArtBpath*" name="arg1" />
+ </parameters>
+ </method>
+ </object>
+ <object name="PrintJob" cname="GnomePrintJob" parent="GObject">
+ <property name="Config" cname="config" type="GnomePrintConfig" readable="true" writeable="true" construct-only="true" />
+ <property name="Context" cname="context" type="GnomePrintMeta" readable="true" writeable="true" />
+ <method name="Close" cname="gnome_print_job_close">
+ <return-type type="gint" />
+ </method>
+ <method name="GetConfig" cname="gnome_print_job_get_config">
+ <return-type type="GnomePrintConfig*" />
+ </method>
+ <method name="GetContext" cname="gnome_print_job_get_context">
+ <return-type type="GnomePrintContext*" />
+ </method>
+ <method name="GetPageSize" cname="gnome_print_job_get_page_size">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="gdouble*" name="width" />
+ <parameter type="gdouble*" name="height" />
+ </parameters>
+ </method>
+ <method name="GetPageSizeFromConfig" cname="gnome_print_job_get_page_size_from_config" shared="true">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="GnomePrintConfig*" name="config" />
+ <parameter type="gdouble*" name="width" />
+ <parameter type="gdouble*" name="height" />
+ </parameters>
+ </method>
+ <method name="GetPages" cname="gnome_print_job_get_pages">
+ <return-type type="gint" />
+ </method>
+ <method name="GetType" cname="gnome_print_job_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <constructor cname="gnome_print_job_new">
+ <parameters>
+ <parameter type="GnomePrintConfig*" name="config" />
+ </parameters>
+ </constructor>
+ <method name="Print" cname="gnome_print_job_print">
+ <return-type type="gint" />
+ </method>
+ <method name="PrintToFile" cname="gnome_print_job_print_to_file">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="gchar*" name="output" />
+ </parameters>
+ </method>
+ <method name="Render" cname="gnome_print_job_render">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="ctx" />
+ </parameters>
+ </method>
+ <method name="RenderPage" cname="gnome_print_job_render_page">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="ctx" />
+ <parameter type="gint" name="page" />
+ <parameter type="gboolean" name="pageops" />
+ </parameters>
+ </method>
+ <method name="SetFile" cname="gnome_print_job_set_file">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="gchar*" name="input" />
+ </parameters>
+ </method>
+ </object>
+ <object name="PrintMeta" cname="GnomePrintMeta" parent="GnomePrintContext">
+ <method name="GetBuffer" cname="gnome_print_meta_get_buffer">
+ <return-type type="const-guchar*" />
+ </method>
+ <method name="GetLength" cname="gnome_print_meta_get_length">
+ <return-type type="gint" />
+ </method>
+ <method name="GetPageName" cname="gnome_print_meta_get_page_name">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="guint" name="page" />
+ <parameter type="guchar**" name="page_name" />
+ </parameters>
+ </method>
+ <method name="GetPages" cname="gnome_print_meta_get_pages">
+ <return-type type="int" />
+ </method>
+ <method name="GetType" cname="gnome_print_meta_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <constructor cname="gnome_print_meta_new" />
+ <method name="Render" cname="gnome_print_meta_render">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="ctx" />
+ </parameters>
+ </method>
+ <method name="RenderData" cname="gnome_print_meta_render_data" shared="true">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="ctx" />
+ <parameter type="const-guchar*" name="data" />
+ <parameter type="gint" name="length" />
+ </parameters>
+ </method>
+ <method name="RenderDataPage" cname="gnome_print_meta_render_data_page" shared="true">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="ctx" />
+ <parameter type="const-guchar*" name="data" />
+ <parameter type="gint" name="length" />
+ <parameter type="gint" name="page" />
+ <parameter type="gboolean" name="pageops" />
+ </parameters>
+ </method>
+ <method name="RenderFile" cname="gnome_print_meta_render_file" shared="true">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="ctx" />
+ <parameter type="const-guchar*" name="filename" />
+ </parameters>
+ </method>
+ <method name="RenderFilePage" cname="gnome_print_meta_render_file_page" shared="true">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="ctx" />
+ <parameter type="const-guchar*" name="filename" />
+ <parameter type="gint" name="page" />
+ <parameter type="gboolean" name="pageops" />
+ </parameters>
+ </method>
+ <method name="RenderPage" cname="gnome_print_meta_render_page">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintContext*" name="ctx" />
+ <parameter type="gint" name="page" />
+ <parameter type="gboolean" name="pageops" />
+ </parameters>
+ </method>
+ <method name="Reset" cname="gnome_print_meta_reset">
+ <return-type type="void" />
+ </method>
+ </object>
+ <object name="PrintSvg" cname="GnomePrintSvg">
+ <method name="GetType" cname="gnome_print_svg_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <constructor cname="gnome_print_svg_new">
+ <parameters>
+ <parameter type="GnomePrintConfig*" name="config" />
+ </parameters>
+ </constructor>
+ </object>
+ <object name="PrintTransport" cname="GnomePrintTransport" parent="GObject">
+ <field name="Config" cname="config" type="GnomePrintConfig*" />
+ <field name="Opened" cname="opened" bits="1" type="guint" />
+ <field name="Err" cname="err" type="GError*" />
+ <virtual_method name="Construct" cname="construct">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintTransport*" name="transport" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Open" cname="open">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintTransport*" name="transport" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Close" cname="close">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintTransport*" name="transport" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Write" cname="write">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintTransport*" name="transport" />
+ <parameter type="const-guchar*" name="buf" />
+ <parameter type="gint" name="len" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="PrintFile" cname="print_file">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GnomePrintTransport*" name="transport" />
+ <parameter type="const-guchar*" name="file_name" />
+ </parameters>
+ </virtual_method>
+ <virtual_method name="Exists" cname="exists">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-GnomePrintTransport*" name="transport" />
+ </parameters>
+ </virtual_method>
+ <method name="Close" cname="gnome_print_transport_close">
+ <return-type type="gint" />
+ </method>
+ <method name="ExistsByName" cname="gnome_print_transport_exists_by_name" shared="true">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="const-char*" name="name" />
+ </parameters>
+ </method>
+ <method name="GetType" cname="gnome_print_transport_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <constructor cname="gnome_print_transport_new">
+ <parameters>
+ <parameter type="GnomePrintConfig*" name="config" />
+ </parameters>
+ </constructor>
+ <method name="Open" cname="gnome_print_transport_open">
+ <return-type type="gint" />
+ </method>
+ <method name="PrintFile" cname="gnome_print_transport_print_file">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-guchar*" name="file_name" />
+ </parameters>
+ </method>
+ <method name="Printf" cname="gnome_print_transport_printf">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-char*" name="fmt" printf_format="true" />
+ <parameter ellipsis="true" printf_format_args="true" />
+ </parameters>
+ </method>
+ <method name="SetError" cname="gnome_print_transport_set_error">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="GError*" name="err" />
+ </parameters>
+ </method>
+ <method name="Write" cname="gnome_print_transport_write">
+ <return-type type="gint" />
+ <parameters>
+ <parameter type="const-guchar*" name="buf" />
+ <parameter type="gint" name="len" />
+ </parameters>
+ </method>
+ </object>
+ <object name="RFont" cname="GnomeRFont" parent="GObject">
+ <method name="GetClosestPangoFont" cname="gnome_rfont_get_closest_pango_font">
+ <return-type type="PangoFont*" />
+ <parameters>
+ <parameter type="PangoFontMap*" name="map" />
+ </parameters>
+ </method>
+ <method name="GetFace" cname="gnome_rfont_get_face">
+ <return-type type="GnomeFontFace*" />
+ </method>
+ <method name="GetFont" cname="gnome_rfont_get_font">
+ <return-type type="GnomeFont*" />
+ </method>
+ <method name="GetGlyphBpath" cname="gnome_rfont_get_glyph_bpath">
+ <return-type type="const-ArtBpath*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdadvance" cname="gnome_rfont_get_glyph_stdadvance">
+ <return-type type="ArtPoint*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ <parameter type="ArtPoint*" name="advance" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdbbox" cname="gnome_rfont_get_glyph_stdbbox">
+ <return-type type="ArtDRect*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ <parameter type="ArtDRect*" name="bbox" />
+ </parameters>
+ </method>
+ <method name="GetGlyphStdkerning" cname="gnome_rfont_get_glyph_stdkerning">
+ <return-type type="ArtPoint*" />
+ <parameters>
+ <parameter type="gint" name="glyph0" />
+ <parameter type="gint" name="glyph1" />
+ <parameter type="ArtPoint*" name="kerning" />
+ </parameters>
+ </method>
+ <method name="GetGlyphSvp" cname="gnome_rfont_get_glyph_svp">
+ <return-type type="const-ArtSVP*" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ </parameters>
+ </method>
+ <method name="GetMatrix" cname="gnome_rfont_get_matrix">
+ <return-type type="gdouble*" />
+ <parameters>
+ <parameter type="gdouble*" name="matrix" />
+ </parameters>
+ </method>
+ <method name="GetPangoDescription" cname="gnome_rfont_get_pango_description">
+ <return-type type="PangoFontDescription*" />
+ </method>
+ <method name="GetType" cname="gnome_rfont_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ </object>
+ <struct name="GPGC" cname="GPGC" opaque="true" />
+ <boxed name="GlyphList" cname="GnomeGlyphList" opaque="true">
+ <method name="Advance" cname="gnome_glyphlist_advance">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="gboolean" name="advance" />
+ </parameters>
+ </method>
+ <method name="Bbox" cname="gnome_glyphlist_bbox">
+ <return-type type="ArtDRect*" />
+ <parameters>
+ <parameter type="const-gdouble*" name="transform" />
+ <parameter type="gint" name="flags" />
+ <parameter type="ArtDRect*" name="bbox" />
+ </parameters>
+ </method>
+ <method name="Check" cname="gnome_glyphlist_check">
+ <return-type type="gboolean" />
+ <parameters>
+ <parameter type="gboolean" name="rules" />
+ </parameters>
+ </method>
+ <method name="Color" cname="gnome_glyphlist_color">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="guint32" name="color" />
+ </parameters>
+ </method>
+ <method name="Dump" cname="gnome_glyphlist_dump">
+ <return-type type="void" />
+ </method>
+ <method name="DumpPgl" cname="gnome_glyphlist_dump_pgl">
+ <return-type type="void" />
+ </method>
+ <method name="Duplicate" cname="gnome_glyphlist_duplicate">
+ <return-type type="GnomeGlyphList*" />
+ </method>
+ <method name="Font" cname="gnome_glyphlist_font">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="GnomeFont*" name="font" />
+ </parameters>
+ </method>
+ <method name="FromTextDumb" cname="gnome_glyphlist_from_text_dumb" shared="true">
+ <return-type type="GnomeGlyphList*" />
+ <parameters>
+ <parameter type="GnomeFont*" name="font" />
+ <parameter type="guint32" name="color" />
+ <parameter type="gdouble" name="kerning" />
+ <parameter type="gdouble" name="letterspace" />
+ <parameter type="const-guchar*" name="text" />
+ </parameters>
+ </method>
+ <method name="FromTextSizedDumb" cname="gnome_glyphlist_from_text_sized_dumb" shared="true">
+ <return-type type="GnomeGlyphList*" />
+ <parameters>
+ <parameter type="GnomeFont*" name="font" />
+ <parameter type="guint32" name="color" />
+ <parameter type="gdouble" name="kerning" />
+ <parameter type="gdouble" name="letterspace" />
+ <parameter type="const-guchar*" name="text" />
+ <parameter type="gint" name="length" />
+ </parameters>
+ </method>
+ <method name="GetType" cname="gnome_glyphlist_get_type" shared="true">
+ <return-type type="GType" />
+ </method>
+ <method name="Glyph" cname="gnome_glyphlist_glyph">
+ <return-type type="void" />
+ <parameters>
+ <parameter type="gint" name="glyph" />
+ </parameters>
+ </method>
+ <method name="Glyphs" cname="gnome_glyphlist_glyphs">
+ <return-type type="void" />
+ <parameters>