[Mono-bugs] [Bug 25798] New - Gdk.Pixbuf.GetFromDrawable() causes a compilation failure under some circumstances
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
5 Jun 2002 03:32:06 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sr@gimp.org.
http://bugzilla.ximian.com/show_bug.cgi?id=25798
--- shadow/25798 Tue Jun 4 23:32:06 2002
+++ shadow/25798.tmp.8306 Tue Jun 4 23:32:06 2002
@@ -0,0 +1,65 @@
+Bug#: 25798
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sr@gimp.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Gdk.Pixbuf.GetFromDrawable() causes a compilation failure under some circumstances
+
+MCS fails to compile the code below with the following error:
+~/sources/c#>mcs -L /usr/local/lib -r glib-sharp -r atk-sharp -r gdk-sharp
+-r gtk-sharp -r System.Drawing colormap_testcase.cs
+colormap_testcase.cs(22) error CS-00-6: Could not find any applicable
+function for this argument list
+Error: Compilation failed
+RESULT: 1
+
+CSC will compile this code under Win2000 with the .NET SDK.
+
+namespace ColorMapTest
+{
+using Gtk;
+using Gdk;
+using GtkSharp;
+using System;
+
+ public class Test
+ {
+ private Gtk.Window mainwin;
+ private Gdk.Colormap colormap;
+ private Gdk.Pixbuf pb;
+ private Gtk.Label l;
+
+ public Test()
+ {
+ mainwin = new Gtk.Window( "Test" );
+ colormap = mainwin.GetColormap();
+
+ l = new Gtk.Label( "Test" );
+ pb = new Gdk.Pixbuf( null );
+ pb.GetFromDrawable( l, colormap, // fails here
+ 0, 0,
+ 0, 0,
+ 32, 32 );
+ mainwin.ShowAll();
+ }
+ static public void Main()
+ {
+ Application.Init();
+ Test t = new Test();
+
+ Application.Run();
+ }
+ }
+
+}