2012-12-23 21:49:14 |
Gabriel Finkelstein |
bug |
|
|
added bug |
2012-12-24 01:20:54 |
Gabriel Finkelstein |
description |
The applet icon is missing in gnome3 on gnome-session-fallback. It only 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! |
The applet icon is missing in gnome3 on gnome-session-fallback. It only 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.get_default()
settings.set_property('gtk-button-images', True)
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. |
|
2012-12-24 02:38:26 |
Gabriel Finkelstein |
description |
The applet icon is missing in gnome3 on gnome-session-fallback. It only 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.get_default()
settings.set_property('gtk-button-images', True)
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. |
The applet icon is missing in gnome3 on gnome-session-fallback. It only 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.get_default()
settings.set_property('gtk-button-images', True)}}}
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.get_style_context()
css_provider = Gtk.CssProvider()
css = "GtkButton { padding: 0px 3px; } "
css_provider.load_from_data(css)
style_context.add_provider(css_provider,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) |
|
2012-12-24 02:39:46 |
Gabriel Finkelstein |
description |
The applet icon is missing in gnome3 on gnome-session-fallback. It only 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.get_default()
settings.set_property('gtk-button-images', True)}}}
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.get_style_context()
css_provider = Gtk.CssProvider()
css = "GtkButton { padding: 0px 3px; } "
css_provider.load_from_data(css)
style_context.add_provider(css_provider,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) |
The applet icon is missing in gnome3 on gnome-session-fallback. It only 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.get_default()
settings.set_property('gtk-button-images', True)
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.get_style_context()
css_provider = Gtk.CssProvider()
css = "GtkButton { padding: 0px 3px; } "
css_provider.load_from_data(css)
style_context.add_provider(css_provider,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) |
|