comparison src/gtkprefs.c @ 13129:d0ae6489a0fb

[gaim-migrate @ 15491] Remove some sillyness when attempting to autodetect our IP address committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 06 Feb 2006 04:20:30 +0000
parents a0a4b44239e8
children 307a259d6f6c
comparison
equal deleted inserted replaced
13128:8adf78fc630c 13129:d0ae6489a0fb
984 gtk_label_set_mnemonic_widget(GTK_LABEL(label), entry); 984 gtk_label_set_mnemonic_widget(GTK_LABEL(label), entry);
985 gtk_table_attach(GTK_TABLE(table), entry, 1, 2, 0, 1, GTK_FILL, 0, 0, 0); 985 gtk_table_attach(GTK_TABLE(table), entry, 1, 2, 0, 1, GTK_FILL, 0, 0, 0);
986 g_signal_connect(G_OBJECT(entry), "changed", 986 g_signal_connect(G_OBJECT(entry), "changed",
987 G_CALLBACK(network_ip_changed), NULL); 987 G_CALLBACK(network_ip_changed), NULL);
988 988
989 if (gaim_network_get_public_ip() != NULL) 989 /*
990 * TODO: This could be better by showing the autodeteced
991 * IP separately from the user-specified IP.
992 */
993 if (gaim_network_get_my_ip(-1) != NULL)
990 gtk_entry_set_text(GTK_ENTRY(entry), 994 gtk_entry_set_text(GTK_ENTRY(entry),
991 gaim_network_get_public_ip()); 995 gaim_network_get_my_ip(-1));
992 996
993 gaim_set_accessible_label (entry, label); 997 gaim_set_accessible_label (entry, label);
994 998
995 999
996 if (gaim_prefs_get_bool("/core/network/auto_ip")) { 1000 if (gaim_prefs_get_bool("/core/network/auto_ip")) {