No applet icon in gnome3 fallback session
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cardapio |
New
|
Undecided
|
Unassigned |
Bug Description
The applet icon is missing in gnome3 on gnome-session-
Using Cardapio 0.9.200 in 12.10
PS: I love Cardapio, thanks for all the work!
EDIT:
I just figured out its because of the GTK "buttons have icons" setting. I solved it by overriding that setting in __init__ with:
settings = Gtk.Settings.
Although my problem now is that the icon gets cut off at 14px height (with a 24px height panel). Right now I'm trying to figure out how to remove that 5px padding.
EDIT 2:
I solved it by adding the following:
css = "GtkButton { padding: 0px 3px; } "
Awesome! I will give it try on my machine and fix upstream ASAP.
Thanks for working on this!
On Sun, Dec 23, 2012 at 6:38 PM, Gabriel Finkelstein <
<email address hidden>> wrote:
> ** Description changed: fallback. It only get_default( ) set_property( 'gtk-button- images' , True) get_default( ) set_property( 'gtk-button- images' , True)}}} get_style_ context( ) load_from_ data(css) add_provider( css_provider, Gtk.STYLE_ PROVIDER_ PRIORITY_ APPLICATION) fallback. It only get_default( ) set_property( 'gtk-button- images' , True)}}} get_default( ) set_property( 'gtk-button- images' , True) get_style_ context( ) load_from_ data(css) add_provider( css_provider, Gtk.STYLE_ PROVIDER_ PRIORITY_ APPLICATION) get_style_ context( ) load_from_ data(css) add_provider( css_provider, Gtk.STYLE_ PROVIDER_ PRIORITY_ APPLICATION) /bugs.launchpad .net/bugs/ 1093349 /bugs.launchpad .net...
>
> The applet icon is missing in gnome3 on gnome-session-
> shows the label "Menu". I tried putting different values in "applet
> icon" in config.json and none work.
>
> Using Cardapio 0.9.200 in 12.10
>
> PS: I love Cardapio, thanks for all the work!
>
> EDIT:
> I just figured out its because of the GTK "buttons have icons" setting.
> I solved it by overriding that setting in __init__ with:
>
> - settings = Gtk.Settings.
> - settings.
> + {{{ settings = Gtk.Settings.
> + settings.
>
> Although my problem now is that the icon gets cut off at 14px height
> (with a 24px height panel). Right now I'm trying to figure out how to
> remove that 5px padding.
> +
> + EDIT 2:
> + I solved it by adding the following:
> + style_context = self.button.
> + css_provider = Gtk.CssProvider()
> + css = "GtkButton { padding: 0px 3px; } "
> + css_provider.
> +
> style_context.
>
> ** Description changed:
>
> The applet icon is missing in gnome3 on gnome-session-
> shows the label "Menu". I tried putting different values in "applet
> icon" in config.json and none work.
>
> Using Cardapio 0.9.200 in 12.10
>
> PS: I love Cardapio, thanks for all the work!
>
> EDIT:
> I just figured out its because of the GTK "buttons have icons" setting.
> I solved it by overriding that setting in __init__ with:
>
> - {{{ settings = Gtk.Settings.
> - settings.
> + settings = Gtk.Settings.
> + settings.
>
> Although my problem now is that the icon gets cut off at 14px height
> (with a 24px height panel). Right now I'm trying to figure out how to
> remove that 5px padding.
>
> EDIT 2:
> I solved it by adding the following:
> - style_context = self.button.
> - css_provider = Gtk.CssProvider()
> - css = "GtkButton { padding: 0px 3px; } "
> - css_provider.
> -
> style_context.
> + style_context = self.button.
> + css_provider = Gtk.CssProvider()
> + css = "GtkButton { padding: 0px 3px; } "
> + css_provider.
> +
> style_context.
>
> --
> You received this bug notification because you are a member of Cardapio
> team, which is subscribed to Cardapio.
> https:/
>
> Title:
> No applet icon in gnome3 fallback session
>
> To manage notifications about this bug go to:
> https:/