From: Detlef R. <det...@gm...> - 2016-05-11 15:50:06
|
Hi cedlemo, that works. Thank you! detlef Am 11.05.2016 um 11:00 schrieb cedlemo: > Hi Detlef, > > this is related to some change in gtk3 try this > label { color: red; }; > > instead of > GtkLabel { color: red}; > > in the same way instead of using GtkGrid for example use grid. > look here : https://developer.gnome.org/gtk3/stable/chap-css-overview.html > the documentation has been updated > > regards > > cedlemo > https://github.com/cedlemo > > > On 10/05/2016 20:47, Detlef Reichl wrote: >> 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 >> >> ------------------------------------------------------------------------------ >> Mobile security can be enabling, not merely restricting. Employees who >> bring their own devices (BYOD) to work are irked by the imposition of MDM >> restrictions. Mobile Device Manager Plus allows you to control only the >> apps on BYO-devices by containerizing them, leaving personal data untouched! >> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j >> _______________________________________________ >> ruby-gnome2-devel-en mailing list >> rub...@li... >> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > > ------------------------------------------------------------------------------ > Mobile security can be enabling, not merely restricting. Employees who > bring their own devices (BYOD) to work are irked by the imposition of MDM > restrictions. Mobile Device Manager Plus allows you to control only the > apps on BYO-devices by containerizing them, leaving personal data untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > |