[Gtk-sharp-list] selectiondata.set patch via metadata

Todd Berman tberman@sevenl.net
Sat, 03 Apr 2004 00:45:48 -0500


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

I attached it the the original email, and will attach it again, this
time with a proper changelog as my tree is now clean :)

I am pretty sure the pc commit had all the changes you requested, I
would double check though.

--Todd

On Fri, 2004-04-02 at 21:52 -0600, Mike Kestner wrote:
> On Fri, 2004-04-02 at 18:48, Todd Berman wrote:
> > Oh, it turns out lewing didnt send the custom, i just thought he did.
> > 
> > This patch fixes up Gtk.SelectionData.Set by turns the byte data
> > parameter from the return value to a regular array variable. lewing has
> > tested using this function with that method signature and says it works.
> 
> How bout attaching the patch?  ;-)
> 
> -- 
> Mike Kestner <mkestner@ximian.com>
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

--=-0x5ju71NTd89cIlXe6nR
Content-Disposition: attachment; filename=selection_fix.patch
Content-Type: text/x-diff; name=selection_fix.patch; charset=utf-8
Content-Transfer-Encoding: 7bit

Index: ChangeLog
===================================================================
RCS file: /cvs/public/gtk-sharp/ChangeLog,v
retrieving revision 1.724
diff -u -r1.724 ChangeLog
--- ChangeLog	3 Apr 2004 05:12:16 -0000	1.724
+++ ChangeLog	3 Apr 2004 05:13:15 -0000
@@ -1,5 +1,9 @@
 2004-04-02  Todd Berman  <tberman@sevenl.net>
 
+	* gtk/Gtk.metadata: fix Gtk.SelectionData.Set.
+
+2004-04-02  Todd Berman  <tberman@sevenl.net>
+
 	* configure.in: added new .pc files
 	* gtk-sharp.pc.in: modified to include Libs: line
 	* art/.cvsignore: added art-sharp.pc
Index: gtk/Gtk.metadata
===================================================================
RCS file: /cvs/public/gtk-sharp/gtk/Gtk.metadata,v
retrieving revision 1.38
diff -u -r1.38 Gtk.metadata
--- gtk/Gtk.metadata	25 Mar 2004 18:40:12 -0000	1.38
+++ gtk/Gtk.metadata	3 Apr 2004 05:13:17 -0000
@@ -9,6 +9,8 @@
   <attr path="/api/namespace/boxed[@cname='GtkSelectionData']" name="opaque">1</attr>
   <attr path="/api/namespace/boxed[@cname='GtkSelectionData']/method[@name='GetText']" name="hidden">1</attr>
   <attr path="/api/namespace/boxed[@cname='GtkSelectionData']/method[@name='SetText']" name="hidden">1</attr>
+  <attr path="/api/namespace/boxed[@cname='GtkSelectionData']/method[@name='Set']/*/*[@name='data']" name="type">guchar</attr>
+  <attr path="/api/namespace/boxed[@cname='GtkSelectionData']/method[@name='Set']/*/*[@name='data']" name="array">1</attr>
   <attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='BackwardSearch']/*/*[@type='GtkTextIter*']" name="pass_as">out</attr>
   <attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='BackwardToTagToggle']/*/*[@type='GtkTextTag*']" name="null_ok">1</attr>
   <attr path="/api/namespace/boxed[@cname='GtkTextIter']/method[@name='ForwardSearch']/*/*[@type='GtkTextIter*']" name="pass_as">out</attr>

--=-0x5ju71NTd89cIlXe6nR--