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

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


--=-lEFdalr0M5u6uvcGolzI
Content-Type: multipart/alternative; boundary="=-MyiGNpQ61Am+B5pSdUMq"


--=-MyiGNpQ61Am+B5pSdUMq
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Vups found one more bug, here is a new patch.


-- 
Martin Willemoes Hansen

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



--=-MyiGNpQ61Am+B5pSdUMq
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>
Vups found one more bug, here is a new patch.<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
<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>
<BR>
<BR>
</BODY>
</HTML>

--=-MyiGNpQ61Am+B5pSdUMq--

--=-lEFdalr0M5u6uvcGolzI
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:25:49 -0000
@@ -1,3 +1,12 @@
+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,
+	  changed type from int to PrintDialogFlags for PrintDialog ctor and
+	  changed return type from byte to string for PrintConfig.Get.
+	* 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:25:53 -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:25:53 -0000
@@ -4937,7 +4937,7 @@
         </parameters>
       </method>
       <method name="Get" cname="gnome_print_config_get">
-        <return-type type="guchar*"/>
+        <return-type type="const-gchar*"/>
         <parameters>
           <parameter type="const-gchar*" name="key"/>
         </parameters>
@@ -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:25:56 -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">
@@ -332,6 +343,18 @@
     </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 -->
 <rule>
@@ -494,6 +517,9 @@
     <method>GetPsName</method>
     <method>GetSample</method>
     <method>GetSpeciesName</method>
+  </class>
+  <class name="GnomePrintConfig">
+    <method>Get</method>
   </class>
   <data>
     <attribute target="return">

--=-lEFdalr0M5u6uvcGolzI--