X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions.c;h=1ec53287691b6748c8f31ad127024a7925d58922;hb=2f09e0ce388f63c341cb328d795766e2bd0dc24b;hp=32b3d274e28c100e82a559ffcddf3f78eef6521a;hpb=619fd7e666944aa83c636d14cd2777cbd5dc1094;p=chaz%2Fopenbox diff --git a/openbox/actions.c b/openbox/actions.c index 32b3d274..1ec53287 100644 --- a/openbox/actions.c +++ b/openbox/actions.c @@ -58,7 +58,6 @@ struct _ObActionsAct { static GSList *registered = NULL; - void actions_startup(gboolean reconfig) { if (reconfig) return; @@ -147,7 +146,7 @@ static ObActionsAct* actions_build_act_from_string(const gchar *name) actions_definition_ref(act->def); act->options = NULL; } else - g_message(_("Invalid action '%s' requested. No such action exists."), + g_message(_("Invalid action \"%s\" requested. No such action exists."), name); return act; @@ -159,23 +158,21 @@ ObActionsAct* actions_parse_string(const gchar *name) if ((act = actions_build_act_from_string(name))) if (act->def->setup) - act->options = act->def->setup(NULL, NULL, NULL); + act->options = act->def->setup(NULL); return act; } -ObActionsAct* actions_parse(ObParseInst *i, - xmlDocPtr doc, - xmlNodePtr node) +ObActionsAct* actions_parse(xmlNodePtr node) { gchar *name; ObActionsAct *act = NULL; - if (parse_attr_string("name", node, &name)) { + if (obt_parse_attr_string(node, "name", &name)) { if ((act = actions_build_act_from_string(name))) /* there is more stuff to parse here */ if (act->def->setup) - act->options = act->def->setup(i, doc, node->xmlChildrenNode); + act->options = act->def->setup(node->children); g_free(name); }