* 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>
* api/gtk-api.xml : regenerated

View File

@ -4937,7 +4937,7 @@
</parameters>
</method>
<method name="Get" cname="gnome_print_config_get">
<return-type type="guchar*"/>
<return-type type="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">

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>
</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>
@ -503,6 +526,18 @@
</data>
</rule>
<rule>
<class name="GnomePrintConfig">
<method>Get</method>
</class>
<data>
<attribute target="return">
<name>type</name>
<value>gchar*</value>
</attribute>
</data>
</rule>
<!-- null args -->
<rule>
<class name="GnomeIconList">