[Gtk-sharp-list] Various enhancements to GnomePrint patch

Martin Willemoes Hansen mwh@sysrq.dk
Mon, 06 Oct 2003 12:00:15 +0200


--=-dUAnndQaAyJQ7Ci4dv3a
Content-Type: multipart/alternative; boundary="=-TQT7ebIyb/sdYuXDuQs2"


--=-TQT7ebIyb/sdYuXDuQs2
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi!

I made some changes to the GnomePrint binding:
        * gnome/PrintJob.custom: Added default ctor.
        * gnome/PrintDialog.custom: Added overloaded ctor with fewer
parameters.
        * sources/Gnome.metadata: Disabled default ctor for PrintJob and
          changed type from int to PrintDialogFlags for PrintDialog
ctor.
        * api/Makefile: Added gtkhtml-api.xml

There is also some changes to api/gdk-api.xml, im not sure why they have
arrived, I use latest CVS.

Okay to commit?

-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net
--------------------------------------------------------               


--=-TQT7ebIyb/sdYuXDuQs2
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.0.9">
</HEAD>
<BODY>
Hi!<BR>
<BR>
I made some changes to the GnomePrint binding:<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * gnome/PrintJob.custom: Added default ctor.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * gnome/PrintDialog.custom: Added overloaded ctor with fewer parameters.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * sources/Gnome.metadata: Disabled default ctor for PrintJob and<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; changed type from int to PrintDialogFlags for PrintDialog ctor.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * api/Makefile: Added gtkhtml-api.xml<BR>
<BR>
There is also some changes to api/gdk-api.xml, im not sure why they have arrived, I use latest CVS.<BR>
<BR>
Okay to commit?<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net
--------------------------------------------------------               
</PRE>
</TD>
</TR>
</TABLE>

</BODY>
</HTML>

--=-TQT7ebIyb/sdYuXDuQs2--

--=-dUAnndQaAyJQ7Ci4dv3a
Content-Disposition: attachment; filename=GnomePrintFixes.diff
Content-Type: text/x-patch; name=GnomePrintFixes.diff; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

? GnomePrintFixes.diff
? gnome/PrintDialog.custom
? gnome/PrintJob.custom
Index: ChangeLog
===================================================================
RCS file: /cvs/public/gtk-sharp/ChangeLog,v
retrieving revision 1.484
diff -u -r1.484 ChangeLog
--- ChangeLog	5 Oct 2003 00:37:24 -0000	1.484
+++ ChangeLog	6 Oct 2003 10:09:07 -0000
@@ -1,3 +1,11 @@
+2003-10-06  Martin Willemoes Hansen  <mwh@sysrq.dk>
+
+	* gnome/PrintJob.custom: Added default ctor.
+	* gnome/PrintDialog.custom: Added overloaded ctor with fewer parameters.
+	* sources/Gnome.metadata: Disabled default ctor for PrintJob and
+	  changed type from int to PrintDialogFlags for PrintDialog ctor.
+	* api/Makefile: Added gtkhtml-api.xml 
+
 2003-10-04  Mike Kestner  <mkestner@ximian.com>
 
 	* generator/CallbackGen.cs : remove CloseWriter call.
Index: api/gdk-api.xml
===================================================================
RCS file: /cvs/public/gtk-sharp/api/gdk-api.xml,v
retrieving revision 1.26
diff -u -r1.26 gdk-api.xml
--- api/gdk-api.xml	1 Oct 2003 21:42:29 -0000	1.26
+++ api/gdk-api.xml	6 Oct 2003 10:09:08 -0000
@@ -1843,8 +1843,8 @@
           <callback cname="child_func">
             <return-type type="gboolean"/>
             <parameters>
-              <parameter type="" name=""/>
-              <parameter type="" name=""/>
+              <parameter type=" &#9;&#9;&#9;&#9;&#9;&#9; gboolean " name="child_func"/>
+              <parameter type=" &#9;&#9;&#9;&#9;&#9;&#9; gboolean " name="child_func"/>
             </parameters>
           </callback>
           <parameter type="gpointer" name="user_data"/>
Index: api/gnome-api.xml
===================================================================
RCS file: /cvs/public/gtk-sharp/api/gnome-api.xml,v
retrieving revision 1.17
diff -u -r1.17 gnome-api.xml
--- api/gnome-api.xml	2 Oct 2003 15:48:36 -0000	1.17
+++ api/gnome-api.xml	6 Oct 2003 10:09:08 -0000
@@ -5056,7 +5056,7 @@
         </parameters>
       </constructor>
     </object>
-    <object name="PrintJob" cname="GnomePrintJob" parent="GObject">
+    <object name="PrintJob" cname="GnomePrintJob" parent="GObject" disabledefaultconstructor="1">
       <method name="Close" cname="gnome_print_job_close">
         <return-type type="gint"/>
       </method>
@@ -6512,7 +6512,7 @@
         <parameters>
           <parameter type="GnomePrintJob*" name="gpj"/>
           <parameter type="const-gchar*" name="title"/>
-          <parameter type="gint" name="flags"/>
+          <parameter type="GnomePrintDialogFlags*" name="flags"/>
         </parameters>
       </constructor>
       <method name="SetCopies" cname="gnome_print_dialog_set_copies">
Index: sources/Gnome.metadata
===================================================================
RCS file: /cvs/public/gtk-sharp/sources/Gnome.metadata,v
retrieving revision 1.12
diff -u -r1.12 Gnome.metadata
--- sources/Gnome.metadata	29 Sep 2003 11:05:30 -0000	1.12
+++ sources/Gnome.metadata	6 Oct 2003 10:09:13 -0000
@@ -319,6 +319,17 @@
   </data>
 </rule>
 
+<!-- disable default constructor -->
+<rule>
+  <class name="GnomePrintJob"/>
+  <data>
+    <attribute target="class">
+      <name>disabledefaultconstructor</name>
+      <value>1</value>
+    </attribute>
+  </data>
+</rule>
+
 <!-- misc -->
 <rule>
   <class name="GnomeAbout">
@@ -331,6 +342,18 @@
      <value>1</value>
     </attribute>
  </data>
+</rule>
+<rule>
+  <class name="GnomePrintDialog">
+    <method>gnome_print_dialog_new</method>
+  </class>
+  <data>
+    <attribute target="params">
+      <filter level="name">flags</filter>
+      <name>type</name>
+      <value>GnomePrintDialogFlags*</value>
+    </attribute>
+  </data>
 </rule>
 
 <!-- Use const-gchar* instead of const-guchar*, when the value is realy a string -->

--=-dUAnndQaAyJQ7Ci4dv3a
Content-Disposition: attachment; filename=PrintJob.custom
Content-Type: text/plain; name=PrintJob.custom; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

//
// PrintJob.custom - customizations
//
// Author: Martin Willemoes Hansen <mwh@sysrq.dk>
//
// Copyright (C) 2003 Martin Willemoes Hansen
//
// This code is inserted after the automatically generated code.
//
	
public PrintJob()
{
	Raw = gnome_print_job_new (PrintConfig.Default().Handle);
}

--=-dUAnndQaAyJQ7Ci4dv3a
Content-Disposition: attachment; filename=PrintDialog.custom
Content-Type: text/plain; name=PrintDialog.custom; charset=iso-8859-1
Content-Transfer-Encoding: 7bit

//
// 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.
//
	
public PrintDialog (Gnome.PrintJob gpj, string title) 
	: this (gpj, title, 0) {}

--=-dUAnndQaAyJQ7Ci4dv3a--