[Gtk-sharp-list] patch for gnome binding
Martin Willemoes Hansen
mwh@sysrq.dk
Mon, 12 Jul 2004 14:46:52 +0200
--=-qqMhfA0K9ij0HodMHWw0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
man, 2004-07-12 kl. 14:22 skrev Mike Kestner:
> On Mon, 2004-07-12 at 03:55, Martin Willemoes Hansen wrote:
>
> > I made a little fix for the gnome-binding of gtk#, what do you think? Is
> > it ok to commit?
>
> No, this is not the correct way to provide a subclassable ctor now. It
> would be best to let the generator generate this ctor on its own now,
> since there are no parameters to map.
Okay, here is an updated patch, what do you think?
Happy hacking!
--
Martin Willemoes Hansen
--=-qqMhfA0K9ij0HodMHWw0
Content-Disposition: attachment; filename=gnome.diff
Content-Type: text/x-patch; name=gnome.diff; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Index: ChangeLog
===================================================================
RCS file: /cvs/public/gtk-sharp/ChangeLog,v
retrieving revision 1.877
diff -u -r1.877 ChangeLog
--- ChangeLog 9 Jul 2004 15:28:51 -0000 1.877
+++ ChangeLog 12 Jul 2004 11:48:56 -0000
@@ -1,3 +1,8 @@
+2004-07-12 Martin Willemoes Hansen <mwh@sysrq.dk>
+
+ * gnome/Gnome.metadata: Remove unnessesary disabledefaultconstructor
+ * gnome/PrintJob.custom: Overload added
+
2004-07-09 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : mark gc param of Drawable.DrawPixbuf null_ok.
Index: gnome/Gnome.metadata
===================================================================
RCS file: /cvs/public/gtk-sharp/gnome/Gnome.metadata,v
retrieving revision 1.16
diff -u -r1.16 Gnome.metadata
--- gnome/Gnome.metadata 19 Jun 2004 14:46:11 -0000 1.16
+++ gnome/Gnome.metadata 12 Jul 2004 11:48:56 -0000
@@ -101,7 +101,6 @@
<attr path="/api/namespace/object[@cname='GnomePrintDialog']/method/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="/api/namespace/object[@cname='GnomePrintDialog']/constructor[@cname='gnome_print_dialog_new']/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="/api/namespace/object[@cname='GnomePrintDialog']/constructor[@cname='gnome_print_dialog_new']/*/*[@name='flags']" name="type">GnomePrintDialogFlags</attr>
- <attr path="/api/namespace/object[@cname='GnomePrintJob']" name="disabledefaultconstructor">1</attr>
<attr path="/api/namespace/object[@cname='GnomePrintJobPreview']/constructor/*/*[@type='const-guchar*']" name="type">const-gchar*</attr>
<attr path="/api/namespace/object[@cname='GnomePrintMeta']/method/*/*[@name='filename']" name="type">const-gchar*</attr>
<attr path="/api/namespace/object[@cname='GnomePrintPdf']" name="parent">GObject</attr>
Index: gnome/PrintJob.custom
===================================================================
RCS file: /cvs/public/gtk-sharp/gnome/PrintJob.custom,v
retrieving revision 1.3
diff -u -r1.3 PrintJob.custom
--- gnome/PrintJob.custom 25 Jun 2004 18:42:18 -0000 1.3
+++ gnome/PrintJob.custom 12 Jul 2004 11:48:56 -0000
@@ -23,7 +23,5 @@
// Boston, MA 02111-1307, USA.
-public PrintJob() : base (IntPtr.Zero)
-{
- Raw = gnome_print_job_new (PrintConfig.Default().Handle);
-}
+public PrintJob() : this (PrintConfig.Default()) {}
+
--=-qqMhfA0K9ij0HodMHWw0--