Mercurial > pidgin
changeset 4856:ac9ed6c5594f
[gaim-migrate @ 5183]
oops, escaped characters do actually count ;-)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 22 Mar 2003 18:13:49 +0000 |
parents | e4bfaba117e4 |
children | cb0681cfb9f2 |
files | src/buddy.c src/multi.c |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy.c Sat Mar 22 16:43:41 2003 +0000 +++ b/src/buddy.c Sat Mar 22 18:13:49 2003 +0000 @@ -903,10 +903,10 @@ while(*c && vis < 20) { if(*c == '&') inside = TRUE; + else if(*c == ';') + inside = FALSE; if(!inside) vis++; - if(*c == ';') - inside = FALSE; length++; c++; /* this is fun */ }
--- a/src/multi.c Sat Mar 22 16:43:41 2003 +0000 +++ b/src/multi.c Sat Mar 22 18:13:49 2003 +0000 @@ -864,7 +864,11 @@ static void proxy_dropdown_set(GObject *w, struct mod_account *ma) { int opt = GPOINTER_TO_INT(g_object_get_data(w, "proxytype")); - gtk_widget_set_sensitive(ma->proxy_host_box, (opt != PROXY_NONE && opt != PROXY_USE_GLOBAL)); + if(opt == PROXY_NONE || opt == PROXY_USE_GLOBAL) + gtk_widget_hide_all(ma->proxy_host_box); + else { + gtk_widget_show_all(ma->proxy_host_box); + } } static void generate_proxy_options(struct mod_account *ma, GtkWidget *box) { @@ -1031,7 +1035,8 @@ gtk_widget_show(entry); ma->proxypass_entry = entry; - gtk_widget_set_sensitive(vbox2, !(gpi == NULL || gpi->proxytype == PROXY_NONE)); + if(gpi == NULL || gpi->proxytype == PROXY_NONE) + gtk_widget_hide_all(vbox2); } static void show_acct_mod(struct gaim_account *a)