[Gtk-sharp-list] Gtk.ColorSelectionDialog

Darwin Reynoso monouser at gmail.com
Sat Sep 6 11:17:21 EDT 2008


Hi,
How can i use the Gtk.ColorSelectionDialog to change the colors of a
Gtk.TextView.Buffer.Text if possible?

void colorselection()
	{
		
		Gtk.ColorSelectionDialog color = new ColorSelectionDialog("Color choose");
		if(color.Run()==(int)Gtk.ResponseType.Ok)
		{
//			Gdk.Color red_color = new Gdk.Color ();
//			red_color = color.ColorSelection;
			Console.WriteLine(red_color.ToString());
		}
		color.Destroy();
	}


More information about the Gtk-sharp-list mailing list