[Gtk-sharp-list] ColorSelectionDialog

Darwin Reynoso monouser at gmail.com
Mon Jun 15 20:52:04 EDT 2009


Hi,
can someone please tell what's wrong with this code?

[Task:File=/home/user/Projects/editor/editor/MainWindow.cs, Line=42,
Column=25, Type=Error, Priority=Normal, Description=Cannot implicitly
convert type `Gtk.ColorSelection' to `Gdk.Color'(CS0029)]

void setColor()
	{
		colorDialog = new ColorSelectionDialog("select color");
		
		color = new Gdk.Color();
		
		if(colorDialog.Run()==(int)ResponseType.Ok)
		{
			color = colorDialog.ColorSelection;
			textview1.ModifyText(StateType.Normal,color);			
		}	
		
	}


More information about the Gtk-sharp-list mailing list