X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fif.c;h=833bdd3a19764669466cd0ae7a50760f98a4c50d;hb=ec328fc04fe6e8d8c3d1ee386d4964963eb2ee17;hp=63a7fbcd20d10c235282ce5e6fe99888e9dec06b;hpb=b01dd0b20fedb27681ceda53deb8c7f2f83eabc3;p=chaz%2Fopenbox diff --git a/openbox/actions/if.c b/openbox/actions/if.c index 63a7fbcd..833bdd3a 100644 --- a/openbox/actions/if.c +++ b/openbox/actions/if.c @@ -82,7 +82,7 @@ static gpointer setup_func(xmlNodePtr node) m = obt_parse_find_node(n->children, "action"); while (m) { ObActionsAct *action = actions_parse(m); - if (action) o->thenacts = g_slist_prepend(o->thenacts, action); + if (action) o->thenacts = g_slist_append(o->thenacts, action); m = obt_parse_find_node(m->next, "action"); } } @@ -92,7 +92,7 @@ static gpointer setup_func(xmlNodePtr node) m = obt_parse_find_node(n->children, "action"); while (m) { ObActionsAct *action = actions_parse(m); - if (action) o->elseacts = g_slist_prepend(o->elseacts, action); + if (action) o->elseacts = g_slist_append(o->elseacts, action); m = obt_parse_find_node(m->next, "action"); } }