summaryrefslogtreecommitdiff
path: root/plugins/gtkui/actions.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-11-05 19:46:55 +0100
committerGravatar waker <wakeroid@gmail.com>2012-11-05 19:46:55 +0100
commitd4132fccbcd079c56b8109ecc15b011e5d1bdee1 (patch)
tree5c53c9efc9745e42b7c48a525a39334ebed7aaf8 /plugins/gtkui/actions.c
parenta1d50122035b30e5735ca5db70593fe51028e628 (diff)
new action API code fixes
Diffstat (limited to 'plugins/gtkui/actions.c')
-rw-r--r--plugins/gtkui/actions.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/gtkui/actions.c b/plugins/gtkui/actions.c
index ac74111f..ee7831f6 100644
--- a/plugins/gtkui/actions.c
+++ b/plugins/gtkui/actions.c
@@ -36,7 +36,10 @@ static void
on_actionitem_activate (GtkMenuItem *menuitem,
DB_plugin_action_t *action)
{
- action->callback (action, NULL, DDB_ACTION_CTX_MAIN);
+ // these actions are always in the MAIN context, or they are coming from new
+ // plugins, so we don't have to care about the user data for <=1.4 plugins.
+ // aren't we?..
+ action->callback (action, DDB_ACTION_CTX_MAIN);
}
void