-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename 'mate_image_menu_item...' to 'eel_image_menu_item_new_from_icon'
- Loading branch information
Showing
3 changed files
with
36 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8bebf06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is bad idea in my opinion. Just don't use icons in menu items. Or if icons are needed, place GtkImageMenuItem replacement in MATE's shared library to share it with other MATE's apps and components.
Also, with current implementation it's impossible to disable menu items icons.
8bebf06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, we are NOT going to stop using icons in menus. Lots of people objected when GNOME tried to disable them unconditionally in an early version of GTK 3.10 and GNOME then changed that to deprecated rather than removed.
We are not GNOME, and the GNOME HIG ("Human Interface Guidelines") for GNOME 3 play no role in our decisions.
8bebf06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into making the icon loading conditional on user having menus in icons turned on later today
8bebf06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You misunderstood my suggestion. I didn't want to say that MATE should follow GNOME's HIG. But dropping menu items has some adventages.
You don't have to maintain reimplementation of GtkImageMenuItem. Just placing image before label is not good solution: you have to add ability to disable icon, you have to deal with margins and various themes, you have to maintain separate library for it or separate copies of code.
Consistence. GNOME applications (like gnome-disks or dconf-editor), Firefox, nm-applet and a lot of apps are using plain menu items without icon. When MATE will continue to use icons for every menu items, it will be inconsistent with other world. Sorry, this is the reality — when GNOME is saying that menu icons are bad, a lot of apps is going to remove it.
8bebf06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No way in the world we are going to drop icons in menu item, no way at all. I am so opposed to that I would locally revert it in my own builds if others wanted to go in that direction, which is very unlikely here anyway.
8bebf06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GNOME can say what they want, other apps can do what they want. We do NOT have to obey. Mate apps are not intended to look like current GNOME apps anyway so consistancy is not an issue.
8bebf06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1021 makes loading icons in eel-editable-label right click menus optional, they follow the "menus-have-icons" gsettings preference and seem to work fine here dynamically, that is without having to restart Caja
8bebf06
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1021 has been merged,menu icons now show when and only when selected by the user(as is our default in MATE)