diff options
author | Jorge Bernal "Koke <[email protected]> | 2005-03-23 03:20:01 +0100 |
---|---|---|
committer | Benjamin Valentin <[email protected]> | 2012-03-26 23:53:34 +0200 |
commit | e0d316abc53e6858814ccc83cb42b3e541e72977 (patch) | |
tree | c17c434e898210a055fb553e2bb235e503e9d243 | |
parent | 68ec89213e4d7c23cb681016b0b627e39fae9e4f (diff) | |
download | mate-panel-e0d316abc53e6858814ccc83cb42b3e541e72977.tar.bz2 mate-panel-e0d316abc53e6858814ccc83cb42b3e541e72977.tar.xz |
Show a default icon for .desktop files that don't have one
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=76495
-rw-r--r-- | mate-panel/menu.c | 2 | ||||
-rw-r--r-- | mate-panel/panel-stock-icons.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/mate-panel/menu.c b/mate-panel/menu.c index b3256842..8b60058c 100644 --- a/mate-panel/menu.c +++ b/mate-panel/menu.c @@ -1489,7 +1489,7 @@ create_menuitem (GtkWidget *menu, NULL, NULL, alias_directory ? matemenu_tree_directory_get_icon (alias_directory) : matemenu_tree_entry_get_icon (entry), - NULL); + PANEL_STOCK_DEFAULT_ICON); setup_menuitem (menuitem, panel_menu_icon_get_size (), diff --git a/mate-panel/panel-stock-icons.h b/mate-panel/panel-stock-icons.h index cb6085f4..9a55b884 100644 --- a/mate-panel/panel-stock-icons.h +++ b/mate-panel/panel-stock-icons.h @@ -48,6 +48,8 @@ extern "C" { #define PANEL_STOCK_EXECUTE "panel-execute" #define PANEL_STOCK_CLEAR "panel-clear" #define PANEL_STOCK_DONT_DELETE "panel-dont-delete" +/* FIXME: put a more representative icon here */ +#define PANEL_STOCK_DEFAULT_ICON "application-default-icon" void panel_init_stock_icons_and_items (void); GtkIconSize panel_menu_icon_get_size (void); |