app: convert all stock IDs kept around by the core by icon names

Particularly GimpViewable's stock_id. Make sure old config files
containing stock IDs are still properly parsed.
This commit is contained in:
Michael Natterer
2014-05-07 01:01:56 +02:00
parent 9ed5b3f45e
commit 23037b5230
64 changed files with 416 additions and 404 deletions

View File

@ -109,20 +109,20 @@ gimp_tool_dialog_new (GimpToolInfo *tool_info,
...)
{
GtkWidget *dialog;
const gchar *stock_id;
const gchar *icon_name;
gchar *identifier;
va_list args;
g_return_val_if_fail (GIMP_IS_TOOL_INFO (tool_info), NULL);
stock_id = gimp_viewable_get_stock_id (GIMP_VIEWABLE (tool_info));
icon_name = gimp_viewable_get_icon_name (GIMP_VIEWABLE (tool_info));
dialog = g_object_new (GIMP_TYPE_TOOL_DIALOG,
"title", tool_info->blurb,
"role", gimp_object_get_name (tool_info),
"help-func", gimp_standard_help_func,
"help-id", tool_info->help_id,
"stock-id", stock_id,
"icon-name", icon_name,
"description", desc ? desc : tool_info->help,
NULL);