]>
Dogcows Code - chaz/openbox/blob - openbox/actions/restart.c
fff0a87f8558a09c56ef2276de4880e4769eec89
1 #include "openbox/actions.h"
2 #include "openbox/openbox.h"
8 static gpointer
setup_func(ObParseInst
*i
, xmlDocPtr doc
, xmlNodePtr node
);
9 static void free_func(gpointer options
);
10 static gboolean
run_func(ObActionsData
*data
, gpointer options
);
12 void action_restart_startup()
14 actions_register("Restart",
21 static gpointer
setup_func(ObParseInst
*i
, xmlDocPtr doc
, xmlNodePtr node
)
26 o
= g_new0(Options
, 1);
28 if ((n
= parse_find_node("command", node
)) ||
29 (n
= parse_find_node("execute", node
)))
31 gchar
*s
= parse_string(doc
, n
);
32 o
->cmd
= parse_expand_tilde(s
);
38 static void free_func(gpointer options
)
48 /* Always return FALSE because its not interactive */
49 static gboolean
run_func(ObActionsData
*data
, gpointer options
)
53 ob_restart_other(o
->cmd
);
This page took 0.034099 seconds and 4 git commands to generate.