[Gtk-sharp-list] patch for gnome binding

Martin Willemoes Hansen mwh@sysrq.dk
Mon, 12 Jul 2004 10:55:17 +0200


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

Hello!

I made a little fix for the gnome-binding of gtk#, what do you think? Is
it ok to commit?

Happy hacking!
-- 
Martin Willemoes Hansen


--=-FDWHmvAnwdF1asnlRGwx
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	10 Jul 2004 21:08:15 -0000
@@ -1,3 +1,8 @@
+2004-07-11  Martin Willemoes Hansen  <mwh@sysrq.dk>
+
+	* gnome/Gnome.metadata: Use disable_void_ctor instead of disabledefaultconstructor
+	* gnome/PrintJob.custom: Pass GType
+
 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	10 Jul 2004 21:08:15 -0000
@@ -101,7 +101,7 @@
   <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='GnomePrintJob']" name="disable_void_ctor">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	10 Jul 2004 21:08:15 -0000
@@ -3,7 +3,7 @@
 //
 // Author: Martin Willemoes Hansen <mwh@sysrq.dk>
 //
-// Copyright (C) 2003 Martin Willemoes Hansen
+// Copyright (C) 2003 2004 Martin Willemoes Hansen
 //
 // This code is inserted after the automatically generated code.
 //
@@ -23,7 +23,7 @@
 // Boston, MA 02111-1307, USA.
 
 	
-public PrintJob() : base (IntPtr.Zero)
+public PrintJob() : base (GType)
 {
 	Raw = gnome_print_job_new (PrintConfig.Default().Handle);
 }

--=-FDWHmvAnwdF1asnlRGwx--