|
From: Detlef R. <det...@gm...> - 2016-05-10 19:01:28
|
Hi,
CSS styling is not working for me since, i think, round a week. A self
written application does not show any CSS styling since then anymore.
And also the demo from cedlemo, which he posted in the gtk forums - see
below - only show black text, while it should show red one. ruby gnome
and rcairo are with the current git master and the system is debian testing.
Could someone confirm this?
detlef
#!/usr/bin/env ruby
require "gtk3"
provider = Gtk::CssProvider.new
provider.load(:data => "GtkLabel { color: red;}")
screen = Gdk::Display.default.default_screen
Gtk::StyleContext.add_provider_for_screen(screen,
provider,
Gtk::StyleProvider::PRIORITY_USER)
window = Gtk::Window.new
window.title = "Simple example"
window.set_default_size(300, 300)
label = Gtk::Label.new("Red text")
window.add(label)
window.show_all
window.signal_connect "destroy" do
Gtk.main_quit
end
Gtk.main
|