/*
* This file is part of DisOrder.
- * Copyright (C) 2006, 2007 Richard Kettlewell
+ * Copyright (C) 2006-2008 Richard Kettlewell
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
-
+/** @file disobedience/properties.c
+ * @brief Track properties editor
+ *
+ * TODO:
+ * - return and escape keys should work
+ */
#include "disobedience.h"
-/* Track properties -------------------------------------------------------- */
-
struct prefdata;
static void kickoff_namepart(struct prefdata *f);
}
/* Called when we've set a namepart */
-static void set_namepart_completed(void *v, const char *error) {
- if(error)
- popup_protocol_error(0, error);
+static void set_namepart_completed(void *v, const char *err) {
+ if(err)
+ popup_protocol_error(0, err);
else {
struct prefdata *f = v;
}
static void set_string_completed(void attribute((unused)) *v,
- const char *error) {
- if(error)
- popup_protocol_error(0, error);
+ const char *err) {
+ if(err)
+ popup_protocol_error(0, err);
}
static void set_string(struct prefdata *f, const char *value) {
}
/* Got the value of a pref */
-static void prefdata_completed(void *v, const char *error, const char *value) {
- if(error) {
+static void prefdata_completed(void *v, const char *err, const char *value) {
+ if(err) {
} else {
struct callbackdata *cbd = v;