[Gtk-sharp-list] Viewport tweak

Lee Mallabone gnome@fonicmonkey.net
26 Mar 2003 08:10:24 +0000


--=-KIUtt+xPh9zxrRWBwOJ5
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2003-03-26 at 00:04, Mike Kestner wrote:
> > I've attached a custom file for Gtk.Viewport to make a constructor that
> > represents the "normal" use case.
> > 
> This shouldn't compile.  There is already a protected Viewport() ctor
> automatically generated.  I thought miguel fixed the bug in mcs that
> allows protected and public versions of the same ctor signature.

I guess I must be slightly out of date with my mcs. :\

> You'll need to set the disabledefaultconstructor attribute on Viewport
> in order to add this customization.

Ok, I've disabled the protected default constructor. Look commitable?

Regards,

Lee.


--=-KIUtt+xPh9zxrRWBwOJ5
Content-Disposition: attachment; filename=viewport.diff
Content-Type: text/x-patch; name=viewport.diff; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit

Index: Gtk.metadata
===================================================================
RCS file: /cvs/public/gtk-sharp/sources/Gtk.metadata,v
retrieving revision 1.46
diff -u -r1.46 Gtk.metadata
--- Gtk.metadata	25 Mar 2003 19:05:40 -0000	1.46
+++ Gtk.metadata	26 Mar 2003 08:15:03 -0000
@@ -1578,14 +1578,7 @@
 <!-- disable default constructor -->
 <rule>
   <class name="GtkScrolledWindow"/>
-  <data>
-    <attribute target="class">
-      <name>disabledefaultconstructor</name>
-      <value>1</value>
-    </attribute>
-  </data>
-</rule>
-<rule>
+  <class name="GtkViewport"/>
   <class name="GtkFrame"/>
   <data>
     <attribute target="class">

--=-KIUtt+xPh9zxrRWBwOJ5--