diff gtk/gtkprefs.c @ 15055:f58283ce58ea

[gaim-migrate @ 17838] Validate the IP address entered by the user in prefs before trying to use it. This should fix a few crashes. I feel like we could get rid of gaim_network_ip_atoi() and just use inet_aton() committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 28 Nov 2006 09:05:34 +0000
parents fdbf71ae8775
children ac460d00e235
line wrap: on
line diff
--- a/gtk/gtkprefs.c	Tue Nov 28 08:44:12 2006 +0000
+++ b/gtk/gtkprefs.c	Tue Nov 28 09:05:34 2006 +0000
@@ -967,6 +967,11 @@
 
 static void network_ip_changed(GtkEntry *entry, gpointer data)
 {
+	/*
+	 * TODO: It would be nice if we could validate this and show a
+	 *       red background in the box when the IP address is invalid
+	 *       and a green background when the IP address is valid.
+	 */
 	gaim_network_set_public_ip(gtk_entry_get_text(entry));
 }