summaryrefslogtreecommitdiff
path: root/openbox/actions/addremovedesktop.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2009-09-19 15:57:20 +0200
committerMikael Magnusson <mikachu@gmail.com>2009-09-19 15:57:20 +0200
commitb89cc5859068fd5543dc9e7da3f469fb0c0a7a1c (patch)
treeb4c9bdcba493142a9fb0c44341ad16173bb49f7a /openbox/actions/addremovedesktop.c
parent308478e4a5f4dc76d69395dda8a9bc42cb69eec4 (diff)
Add all the action names used in 3.4 so configs don't break
Diffstat (limited to 'openbox/actions/addremovedesktop.c')
-rw-r--r--openbox/actions/addremovedesktop.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/openbox/actions/addremovedesktop.c b/openbox/actions/addremovedesktop.c
index b6e621ab..1e7f0b57 100644
--- a/openbox/actions/addremovedesktop.c
+++ b/openbox/actions/addremovedesktop.c
@@ -11,6 +11,11 @@ static gpointer setup_func(xmlNodePtr node);
static gpointer setup_add_func(xmlNodePtr node);
static gpointer setup_remove_func(xmlNodePtr node);
static gboolean run_func(ObActionsData *data, gpointer options);
+/* 3.4-compatibility */
+static gpointer setup_addcurrent_func(xmlNodePtr node);
+static gpointer setup_addlast_func(xmlNodePtr node);
+static gpointer setup_removecurrent_func(xmlNodePtr node);
+static gpointer setup_removelast_func(xmlNodePtr node);
void action_addremovedesktop_startup(void)
{
@@ -18,6 +23,16 @@ void action_addremovedesktop_startup(void)
NULL, NULL);
actions_register("RemoveDesktop", setup_remove_func, g_free, run_func,
NULL, NULL);
+
+ /* 3.4-compatibility */
+ actions_register("AddDesktopLast", setup_addlast_func, g_free, run_func,
+ NULL, NULL);
+ actions_register("RemoveDesktopLast", setup_removelast_func, g_free, run_func,
+ NULL, NULL);
+ actions_register("AddDesktopCurrent", setup_addcurrent_func, g_free, run_func,
+ NULL, NULL);
+ actions_register("RemoveDesktopCurrent", setup_removecurrent_func, g_free, run_func,
+ NULL, NULL);
}
static gpointer setup_func(xmlNodePtr node)
@@ -69,3 +84,32 @@ static gboolean run_func(ObActionsData *data, gpointer options)
return FALSE;
}
+
+/* 3.4-compatibility */
+static gpointer setup_addcurrent_func(xmlNodePtr node)
+{
+ Options *o = setup_add_func(node);
+ o->current = TRUE;
+ return o;
+}
+
+static gpointer setup_addlast_func(xmlNodePtr node)
+{
+ Options *o = setup_add_func(node);
+ o->current = FALSE;
+ return o;
+}
+
+static gpointer setup_removecurrent_func(xmlNodePtr node)
+{
+ Options *o = setup_remove_func(node);
+ o->current = TRUE;
+ return o;
+}
+
+static gpointer setup_removelast_func(xmlNodePtr node)
+{
+ Options *o = setup_remove_func(node);
+ o->current = FALSE;
+ return o;
+}