diff --git a/ChangeLog b/ChangeLog index 159278d96e..0b3d0ac319 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-06-16 Michael Natterer + + * 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 * libgimpwidgets/gimpcontroller.[ch]: added a "name" property. diff --git a/app/actions/context-actions.c b/app/actions/context-actions.c index 767935106e..19d2d41dd8 100644 --- a/app/actions/context-actions.c +++ b/app/actions/context-actions.c @@ -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 } }; diff --git a/app/widgets/gimpcontrollers.c b/app/widgets/gimpcontrollers.c index f48a8992fe..1a8b8d83fd 100644 --- a/app/widgets/gimpcontrollers.c +++ b/app/widgets/gimpcontrollers.c @@ -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 {