void action_movetoedge_startup(void)
{
- actions_register("MoveToEdge", setup_func, g_free, run_func, NULL, NULL);
+ actions_register("MoveToEdge", setup_func, g_free, run_func);
/* 3.4-compatibility */
- actions_register("MoveToEdgeNorth", setup_north_func, g_free, run_func,
- NULL, NULL);
- actions_register("MoveToEdgeSouth", setup_south_func, g_free, run_func,
- NULL, NULL);
- actions_register("MoveToEdgeEast", setup_east_func, g_free, run_func,
- NULL, NULL);
- actions_register("MoveToEdgeWest", setup_west_func, g_free, run_func,
- NULL, NULL);
+ actions_register("MoveToEdgeNorth", setup_north_func, g_free, run_func);
+ actions_register("MoveToEdgeSouth", setup_south_func, g_free, run_func);
+ actions_register("MoveToEdgeEast", setup_east_func, g_free, run_func);
+ actions_register("MoveToEdgeWest", setup_west_func, g_free, run_func);
}
static gpointer setup_func(xmlNodePtr node)
o = g_new0(Options, 1);
o->dir = OB_DIRECTION_NORTH;
- if ((n = obt_parse_find_node(node, "direction"))) {
- gchar *s = obt_parse_node_string(n);
+ if ((n = obt_xml_find_node(node, "direction"))) {
+ gchar *s = obt_xml_node_string(n);
if (!g_ascii_strcasecmp(s, "north") ||
!g_ascii_strcasecmp(s, "up"))
o->dir = OB_DIRECTION_NORTH;