X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/7c30fc7526b3f761d1b4d1c9d3a51842569529e2..36a36b6757555ede99b8b72325437a208a8d4480:/disobedience/properties.c diff --git a/disobedience/properties.c b/disobedience/properties.c index 57ed65d..16ee97c 100644 --- a/disobedience/properties.c +++ b/disobedience/properties.c @@ -1,6 +1,6 @@ /* * 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 @@ -17,11 +17,14 @@ * 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); @@ -29,7 +32,7 @@ static void completed_namepart(struct prefdata *f); static const char *get_edited_namepart(struct prefdata *f); static void set_edited_namepart(struct prefdata *f, const char *value); static void set_namepart(struct prefdata *f, const char *value); -static void set_namepart_completed(void *v, const char *error); +static void set_namepart_completed(void *v, const char *err); static void kickoff_string(struct prefdata *f); static void completed_string(struct prefdata *f); @@ -43,7 +46,7 @@ static const char *get_edited_boolean(struct prefdata *f); static void set_edited_boolean(struct prefdata *f, const char *value); static void set_boolean(struct prefdata *f, const char *value); -static void prefdata_completed(void *v, const char *error, const char *value); +static void prefdata_completed(void *v, const char *err, const char *value); static void prefdata_onerror(struct callbackdata *cbd, int code, const char *msg); @@ -341,9 +344,9 @@ static void set_namepart(struct prefdata *f, const char *value) { } /* 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; @@ -374,9 +377,9 @@ static void set_edited_string(struct prefdata *f, const char *value) { } 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) { @@ -438,8 +441,8 @@ static void prefdata_onerror(struct callbackdata *cbd, } /* 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;