* 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.

svn path=/trunk/gtk-sharp/; revision=18738
This commit is contained in:
Martin Willemoes Hansen 2003-10-08 07:16:39 +00:00
parent f716fb7003
commit 691173a8ac
5 changed files with 72 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2003-10-08 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.
2003-10-07 Mike Kestner <mkestner@ximian.com> 2003-10-07 Mike Kestner <mkestner@ximian.com>
* api/gtk-api.xml : regenerated * api/gtk-api.xml : regenerated

View File

@ -4937,7 +4937,7 @@
</parameters> </parameters>
</method> </method>
<method name="Get" cname="gnome_print_config_get"> <method name="Get" cname="gnome_print_config_get">
<return-type type="guchar*"/> <return-type type="gchar*"/>
<parameters> <parameters>
<parameter type="const-gchar*" name="key"/> <parameter type="const-gchar*" name="key"/>
</parameters> </parameters>
@ -5056,7 +5056,7 @@
</parameters> </parameters>
</constructor> </constructor>
</object> </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"> <method name="Close" cname="gnome_print_job_close">
<return-type type="gint"/> <return-type type="gint"/>
</method> </method>
@ -6512,7 +6512,7 @@
<parameters> <parameters>
<parameter type="GnomePrintJob*" name="gpj"/> <parameter type="GnomePrintJob*" name="gpj"/>
<parameter type="const-gchar*" name="title"/> <parameter type="const-gchar*" name="title"/>
<parameter type="gint" name="flags"/> <parameter type="GnomePrintDialogFlags" name="flags"/>
</parameters> </parameters>
</constructor> </constructor>
<method name="SetCopies" cname="gnome_print_dialog_set_copies"> <method name="SetCopies" cname="gnome_print_dialog_set_copies">

12
gnome/PrintDialog.custom Normal file
View File

@ -0,0 +1,12 @@
//
// 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) {}

14
gnome/PrintJob.custom Normal file
View File

@ -0,0 +1,14 @@
//
// 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);
}

View File

@ -319,6 +319,17 @@
</data> </data>
</rule> </rule>
<!-- disable default constructor -->
<rule>
<class name="GnomePrintJob"/>
<data>
<attribute target="class">
<name>disabledefaultconstructor</name>
<value>1</value>
</attribute>
</data>
</rule>
<!-- misc --> <!-- misc -->
<rule> <rule>
<class name="GnomeAbout"> <class name="GnomeAbout">
@ -332,6 +343,18 @@
</attribute> </attribute>
</data> </data>
</rule> </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 --> <!-- Use const-gchar* instead of const-guchar*, when the value is realy a string -->
<rule> <rule>
@ -503,6 +526,18 @@
</data> </data>
</rule> </rule>
<rule>
<class name="GnomePrintConfig">
<method>Get</method>
</class>
<data>
<attribute target="return">
<name>type</name>
<value>gchar*</value>
</attribute>
</data>
</rule>
<!-- null args --> <!-- null args -->
<rule> <rule>
<class name="GnomeIconList"> <class name="GnomeIconList">