Commit aa96898f authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

ref the actions when putting them in the mapping table.

2004-06-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpcontrollers.c: ref the actions when putting
	them in the mapping table.

	* app/actions/context-actions.c: added actions to change the
	opacity in 10% steps.
parent f3b7f416
2004-06-16 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontrollers.c: ref the actions when putting
them in the mapping table.
* app/actions/context-actions.c: added actions to change the
opacity in 10% steps.
2004-06-16 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/gimpcontroller.[ch]: added a "name" property.
......
......@@ -80,6 +80,14 @@ static GimpEnumActionEntry context_opacity_actions[] =
{ "context-opacity-increase", GTK_STOCK_ADD,
"More Opaque", NULL, NULL,
GIMP_CONTEXT_SELECT_NEXT,
NULL },
{ "context-opacity-decrease-skip", GTK_STOCK_REMOVE,
"Much More Transparent", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_PREVIOUS,
NULL },
{ "context-opacity-increase-skip", GTK_STOCK_ADD,
"Much More Opaque", NULL, NULL,
GIMP_CONTEXT_SELECT_SKIP_NEXT,
NULL }
};
......
......@@ -338,7 +338,8 @@ gimp_controller_deserialize (GimpControllerManager *manager,
*key = event_id;
g_hash_table_insert (info->mapping, key, action);
g_hash_table_insert (info->mapping, key,
g_object_ref (action));
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment