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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user