[Gtk-sharp-list] Changes for Gdk.Colormap

Luciano martorella@sssup.it
Tue, 25 Nov 2003 23:54:27 +0100


This is a multi-part message in MIME format.
--------------040207090605090809010901
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


  Hi!!
  Here changes for Gdk.Colormap class, to fix small error in API:

  Method 'AllocColor': has GdkColor* pass by ref, not by value
  Method 'AllocColors': has GdkColor* pass by array, not by value
  Method 'AllocColors': has gboolean* pass by array, not by ref
  Method 'QueryColor': has GdkColor* pass by ref, not by value
  Method 'FreeColors': has GdkColor* pass by array, not by value


  The metadata for the first method (AllocColor), make "Colormap.custom" 
obsolete.

  I hope this things is not wrongs... :)

  Bye

-- 
----------------
-| Luciano M.  \-
---------------------------------
http://net.supereva.it/noinetcorp
---------------------------------

--------------040207090605090809010901
Content-Type: text/plain;
 name="colormap.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="colormap.diff"

Index: Gdk.metadata
===================================================================
RCS file: /mono/gtk-sharp/gdk/Gdk.metadata,v
retrieving revision 1.2
diff -u -p -r1.2 Gdk.metadata
--- Gdk.metadata	13 Oct 2003 21:53:40 -0000	1.2
+++ Gdk.metadata	25 Nov 2003 22:46:23 -0000
@@ -13,7 +13,11 @@
   <attr path="//class[@cname='GdkPointer_']/method[@name='Grab']/*/*[@name='confine_to']" name="null_ok">1</attr>
   <attr path="//class[@cname='GdkPointer_']/method[@name='Grab']/*/*[@name='cursor']" name="null_ok">1</attr>
   <attr path="//object[@cname='GdkBitmap']" name="parent">GdkDrawable</attr>
-  <attr path="//object[@cname='GdkColormap']/method[@name='AllocColor']" name="hidden">1</attr>
+  <attr path="//object[@cname='GdkColormap']/method[@name='AllocColor']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
+  <attr path="//object[@cname='GdkColormap']/method[@name='AllocColors']/*/*[@type='GdkColor*']" name="array">1</attr>
+  <attr path="//object[@cname='GdkColormap']/method[@name='AllocColors']/*/*[@name='success']" name="array">1</attr>
+  <attr path="//object[@cname='GdkColormap']/method[@name='QueryColor']/*/*[@type='GdkColor*']" name="pass_as">ref</attr>
+  <attr path="//object[@cname='GdkColormap']/method[@name='FreeColors']/*/*[@type='GdkColor*']" name="array">1</attr>
   <attr path="//object[@cname='GdkDrawable']/method[@name='DrawLines']" name="hidden">1</attr>
   <attr path="//object[@cname='GdkDrawable']/method[@name='DrawPolygon']" name="hidden">1</attr>
   <attr path="//object[@cname='GdkDrawable']/method[@name='GetSize']/*/*[@type='gint*']" name="pass_as">out</attr>

--------------040207090605090809010901--