Mercurial > pidgin.yaz
changeset 12337:610327016c4a
[gaim-migrate @ 14641]
Make the Add Buddy... dialog not allow adding a nameless buddy.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 05 Dec 2005 03:28:25 +0000 |
parents | 0bde9a3cb93d |
children | 1f6aac820540 |
files | src/gtkblist.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkblist.c Mon Dec 05 03:02:12 2005 +0000 +++ b/src/gtkblist.c Mon Dec 05 03:28:25 2005 +0000 @@ -4356,10 +4356,17 @@ if (username != NULL) gtk_entry_set_text(GTK_ENTRY(data->entry), username); + else + gtk_dialog_set_response_sensitive(GTK_DIALOG(data->window), + GTK_RESPONSE_OK, FALSE); gtk_entry_set_activates_default (GTK_ENTRY(data->entry), TRUE); gaim_set_accessible_label (data->entry, label); + g_signal_connect(G_OBJECT(data->entry), "changed", + G_CALLBACK(gaim_gtk_set_sensitive_if_input), + data->window); + label = gtk_label_new(_("Alias:")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 1, 2);