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
=== modified file 'lib/Widgets/AppMenu.vala'
--- lib/Widgets/AppMenu.vala 2012-01-15 21:04:11 +0000
+++ lib/Widgets/AppMenu.vala 2012-04-28 11:11:18 +0000
@@ -29,12 +29,12 @@
2929
30 public AppMenu (Gtk.Menu menu) {30 public AppMenu (Gtk.Menu menu) {
31 31
32 base (new Image.from_stock (Stock.PROPERTIES, IconSize.MENU), _("Menu"), menu);32 base (new Image.from_icon_name ("application-menu", IconSize.MENU), _("Menu"), menu);
33 }33 }
3434
35 public AppMenu.with_app (Granite.Application? application, Gtk.Menu menu) {35 public AppMenu.with_app (Granite.Application? application, Gtk.Menu menu) {
36 36
37 base (new Image.from_stock (Stock.PROPERTIES, IconSize.MENU), _("Menu"), menu);37 base (new Image.from_icon_name ("application-menu", IconSize.MENU), _("Menu"), menu);
38 38
39 this.add_items (menu);39 this.add_items (menu);
40 40
@@ -48,7 +48,7 @@
48 **/48 **/
49 public AppMenu.with_urls (Gtk.Menu menu, string help_url, string translate_url, string bug_url) {49 public AppMenu.with_urls (Gtk.Menu menu, string help_url, string translate_url, string bug_url) {
50 critical("This is a deprecated creation method: AppMenu.with_urls");50 critical("This is a deprecated creation method: AppMenu.with_urls");
51 base (new Image.from_stock (Stock.PROPERTIES, IconSize.MENU), _("Menu"), menu);51 base (new Image.from_icon_name ("application-menu", IconSize.MENU), _("Menu"), menu);
52 }52 }
53 53
54 public void add_items (Gtk.Menu menu) {54 public void add_items (Gtk.Menu menu) {

Subscribers

People subscribed via source and target branches