Merge lp:~mefrio-g/granite/fix-990203 into lp:~elementary-pantheon/granite/granite

Proposed by Mario Guerriero
Status: Merged
Merged at revision: 230
Proposed branch: lp:~mefrio-g/granite/fix-990203
Merge into: lp:~elementary-pantheon/granite/granite
Diff against target: 27 lines (+3/-3)
1 file modified
lib/Widgets/AppMenu.vala (+3/-3)
To merge this branch: bzr merge lp:~mefrio-g/granite/fix-990203
Reviewer Review Type Date Requested Status
Cody Garver (community) Approve
Review via email: mp+103976@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

What happens if the theme doesn't have an "application-menu" icon?

Revision history for this message
Mario Guerriero (mefrio-g) wrote :

It is showed a blank icon

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

So there will be no fallback, just a blank icon on all themes except elementary? Doesn't sound like a great idea.

Revision history for this message
Danielle Foré (danrabbit) wrote :

We could also consider shipping "application-menu" with granite instead of in the icon theme. I think it would make sense since it's actually granite that requires it.

filed a bug here: https://bugs.launchpad.net/granite/+bug/990700

Revision history for this message
Cody Garver (codygarver) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/Widgets/AppMenu.vala'
2--- lib/Widgets/AppMenu.vala 2012-01-15 21:04:11 +0000
3+++ lib/Widgets/AppMenu.vala 2012-04-28 11:11:18 +0000
4@@ -29,12 +29,12 @@
5
6 public AppMenu (Gtk.Menu menu) {
7
8- base (new Image.from_stock (Stock.PROPERTIES, IconSize.MENU), _("Menu"), menu);
9+ base (new Image.from_icon_name ("application-menu", IconSize.MENU), _("Menu"), menu);
10 }
11
12 public AppMenu.with_app (Granite.Application? application, Gtk.Menu menu) {
13
14- base (new Image.from_stock (Stock.PROPERTIES, IconSize.MENU), _("Menu"), menu);
15+ base (new Image.from_icon_name ("application-menu", IconSize.MENU), _("Menu"), menu);
16
17 this.add_items (menu);
18
19@@ -48,7 +48,7 @@
20 **/
21 public AppMenu.with_urls (Gtk.Menu menu, string help_url, string translate_url, string bug_url) {
22 critical("This is a deprecated creation method: AppMenu.with_urls");
23- base (new Image.from_stock (Stock.PROPERTIES, IconSize.MENU), _("Menu"), menu);
24+ base (new Image.from_icon_name ("application-menu", IconSize.MENU), _("Menu"), menu);
25 }
26
27 public void add_items (Gtk.Menu menu) {

Subscribers

People subscribed via source and target branches