Mercurial > pidgin.yaz
changeset 1041:ab8ef0fc1417
[gaim-migrate @ 1051]
Wahoo
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 01 Nov 2000 09:12:57 +0000 |
parents | 17cea517fd90 |
children | 8a4290984d1e |
files | src/dialogs.c |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dialogs.c Wed Nov 01 09:07:17 2000 +0000 +++ b/src/dialogs.c Wed Nov 01 09:12:57 2000 +0000 @@ -3243,10 +3243,17 @@ GtkWidget *add; GtkWidget *label; GtkWidget *topbox; + static int a, c; if (aliasdlg) { gtk_entry_set_text(GTK_ENTRY(aliasentry), b->name); gtk_widget_show(aliasdlg); + gtk_signal_disconnect(GTK_OBJECT(add), a); + gtk_signal_disconnect(GTK_OBJECT(aliasname), c); + a = gtk_signal_connect(GTK_OBJECT(add), "clicked", + GTK_SIGNAL_FUNC(do_alias), b); + c = gtk_signal_connect(GTK_OBJECT(aliasname), "activate", + GTK_SIGNAL_FUNC(do_alias), b); return; } @@ -3296,11 +3303,9 @@ GTK_SIGNAL_FUNC(destroy_dialog), aliasdlg); gtk_signal_connect(GTK_OBJECT(cancel), "clicked", GTK_SIGNAL_FUNC(destroy_dialog), aliasdlg); - gtk_signal_connect(GTK_OBJECT(add), "clicked", + a = gtk_signal_connect(GTK_OBJECT(add), "clicked", GTK_SIGNAL_FUNC(do_alias), b); - gtk_signal_connect(GTK_OBJECT(aliasentry), "activate", - GTK_SIGNAL_FUNC(do_alias), b); - gtk_signal_connect(GTK_OBJECT(aliasname), "activate", + c = gtk_signal_connect(GTK_OBJECT(aliasname), "activate", GTK_SIGNAL_FUNC(do_alias), b); /* Finish up */ gtk_widget_show(add);