fix up the sendtolayer actions
This commit is contained in:
parent
23c8f0bc5b
commit
2c9d6c8cab
1 changed files with 5 additions and 4 deletions
|
@ -16,17 +16,18 @@ static gboolean run_func(ObActionsData *data, gpointer options);
|
||||||
void action_layer_startup()
|
void action_layer_startup()
|
||||||
{
|
{
|
||||||
actions_register("ToggleAlwaysOnTop", setup_func_top, g_free,
|
actions_register("ToggleAlwaysOnTop", setup_func_top, g_free,
|
||||||
run_func_toggle, NULL, NULL);
|
run_func, NULL, NULL);
|
||||||
actions_register("ToggleAlwaysOnBottom", setup_func_bottom, g_free,
|
actions_register("ToggleAlwaysOnBottom", setup_func_bottom, g_free,
|
||||||
run_func_toggle, NULL, NULL);
|
run_func, NULL, NULL);
|
||||||
actions_register("SendToLayer", setup_func_send, g_free,
|
actions_register("SendToLayer", setup_func_send, g_free,
|
||||||
run_func_send, NULL, NULL);
|
run_func, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static gpointer setup_func_top(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
|
static gpointer setup_func_top(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node)
|
||||||
{
|
{
|
||||||
Options *o = g_new0(Options, 1);
|
Options *o = g_new0(Options, 1);
|
||||||
o->layer = 1;
|
o->layer = 1;
|
||||||
|
o->toggle = TRUE;
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +36,7 @@ static gpointer setup_func_bottom(ObParseInst *i, xmlDocPtr doc,
|
||||||
{
|
{
|
||||||
Options *o = g_new0(Options, 1);
|
Options *o = g_new0(Options, 1);
|
||||||
o->layer = -1;
|
o->layer = -1;
|
||||||
|
o->toggle = TRUE;
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +47,6 @@ static gpointer setup_func_send(ObParseInst *i, xmlDocPtr doc,
|
||||||
Options *o;
|
Options *o;
|
||||||
|
|
||||||
o = g_new0(Options, 1);
|
o = g_new0(Options, 1);
|
||||||
o->toggle = TRUE;
|
|
||||||
|
|
||||||
if ((n = parse_find_node("layer", node))) {
|
if ((n = parse_find_node("layer", node))) {
|
||||||
gchar *s = parse_string(doc, n);
|
gchar *s = parse_string(doc, n);
|
||||||
|
|
Loading…
Reference in a new issue