Skip to content

Instantly share code, notes, and snippets.

@danlucraft
Created September 9, 2008 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danlucraft/9665 to your computer and use it in GitHub Desktop.
Save danlucraft/9665 to your computer and use it in GitHub Desktop.
require 'gtk2'
require 'gtksourceview2'
sv = Gtk::SourceView.new
win = Gtk::Window.new
win.set_size_request(800, 600)
win.add(sv)
sv.modify_base(Gtk::StateType::NORMAL, Gdk::Color.parse("#00FF00")); # doesn't work here
win.show_all
sv.modify_base(Gtk::StateType::NORMAL, Gdk::Color.parse("#00FF00")); # works here
Gtk.main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment