Re: [Sugar-devel] How to use CSS style sheets to style widgets in Sugar Activities [Gtk3]

2012-12-13 Thread Flavio Danesse
screen = Gdk.Screen.get_default() css_provider = Gtk.CssProvider() style_path = os.path.join(JAMediaObjectsPath, JAMediaEstilo.css) css_provider.load_from_path(style_path) context = Gtk.StyleContext() context.add_provider_for_screen( screen, css_provider,

Re: [Sugar-devel] How to use CSS style sheets to style widgets in Sugar Activities [Gtk3]

2012-12-13 Thread Aneesh Dogra
Works! Thanks a lot. :) On Thu, Dec 13, 2012 at 3:33 PM, Flavio Danesse fdane...@gmail.com wrote: screen = Gdk.Screen.get_default() css_provider = Gtk.CssProvider() style_path = os.path.join(JAMediaObjectsPath, JAMediaEstilo.css) css_provider.load_from_path(style_path) context =

[Sugar-devel] How to use CSS style sheets to style widgets in Sugar Activities [Gtk3]

2012-12-12 Thread Aneesh Dogra
I am trying to get a functionality like http://erikos.sweettimez.de/page/2/ I tried adding :- style_context = self.get_style_context() css_provider = Gtk.CssProvider() css_provider.load_from_path('gtk-widgets1.css') style_context.add_provider(css_provider,