Re: having trouble with stylesheet.css
- From: Amy C <mathematical coffee gmail com>
- To: "Jasper St. Pierre" <jstpierre mecheye net>
- Cc: gnome-shell-list gnome org
- Subject: Re: having trouble with stylesheet.css
- Date: Thu, 7 Jun 2012 12:58:43 +1000
On 7 June 2012 11:46, Jasper St. Pierre <jstpierre mecheye net> wrote:
> On Wed, Jun 6, 2012 at 9:36 PM, Amy C <mathematical coffee gmail com> wrote:
>> When I load the extension, my popup menu item is the default
>> background/text color that is used for all the other menu items,
>> instead of red text and green background.
>>
>> If I instead do:
>>
>> dummy.set_style('color: #ff0000; background-color: #00ff00');
>>
>> it works.
>
> It shouldn't. You're trying to call set_style on something that is not
> a StWidget. Maybe you wrote:
>
> dummy.actor.set_style('color: #ff0000; background-color: #00ff00');
>
> instead? Make sure that that .actor exists.
>
Sorry, I did mean dummy.actor_set_style and
dummy.actor.add_style_class_name. My problem remains - the style
doesn't get applied unless I use .set_style directly or add my style
class into /usr/share/gnome-shell/theme/gnome-shell.css. Adding to
stylesheet.css doesn't work.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]