Mercurial > pidgin.yaz
comparison src/util.h @ 6861:4ae5d9c3d9ec
[gaim-migrate @ 7407]
You know the thing that checked if the manual browser command was valid?
I moved the funcion that does the actual checking into util.c It's pretty
generic, I guess.
I moved the check (the call to that function) to browser.c, so it checks
for a valid browser when you click on a link. The old way used to really
annoy me, because you would get multiple error boxes about the browser
being invalid.
Herman, I tried to keep things compiling on Windows. I didn't want to
#ifdef the program_is_valid() function in util.c--I don't see any
reason why it wouldn't compile in Windows. But if there's a problem
with it feel free to #ifdef that puppy.
Also, Nathan, I'm going to quiz you later on my townhousemates, so
please bring a number two pencil and make sure you eat a healthy breakfast.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 16 Sep 2003 04:57:36 +0000 |
parents | 41120df7ed94 |
children | 083d1e4a9c78 |
comparison
equal
deleted
inserted
replaced
6860:82607477da69 | 6861:4ae5d9c3d9ec |
---|---|
259 * @return A file pointer to the temporary file, or @c NULL on failure. | 259 * @return A file pointer to the temporary file, or @c NULL on failure. |
260 */ | 260 */ |
261 FILE *gaim_mkstemp(gchar **path); | 261 FILE *gaim_mkstemp(gchar **path); |
262 | 262 |
263 /** | 263 /** |
264 * Checks if the given program name is valid and executable. | |
265 * | |
266 * @parm program The file name of the application. | |
267 * | |
268 * @return True if the program is runable. | |
269 */ | |
270 gboolean program_is_valid(const char *program); | |
271 | |
272 /** | |
264 * Attempts to convert a string to UTF-8 from an unknown encoding. | 273 * Attempts to convert a string to UTF-8 from an unknown encoding. |
265 * | 274 * |
266 * This function checks the locale and tries sane defaults. | 275 * This function checks the locale and tries sane defaults. |
267 * | 276 * |
268 * @param str The source string. | 277 * @param str The source string. |