Mercurial > pidgin
comparison src/blist.c @ 6371:8f94cce8faa5
[gaim-migrate @ 6876]
I think I touched almost every file. Here's what happened.
I started off fixing up the Makefile.am and configure.ac files to help with
the core/UI split some. Then I got annoyed with the
build_{allow,deny}_list() functions that everything used, and decided to
core/UI split privacy. While doing that, I decided to redesign the dialog.
So now, a lot has changed, but not really so much. Just that most files
got affected.
Oh yeah, and the UI stuff was taken out of internal.h and moved to
gtkinternal.h. If you use this, please be aware of this change.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 05 Aug 2003 10:55:04 +0000 |
parents | aeb8c2119a58 |
children | 01289157fc37 |
comparison
equal
deleted
inserted
replaced
6370:a4b83df2165b | 6371:8f94cce8faa5 |
---|---|
1957 | 1957 |
1958 g_free(filename); | 1958 g_free(filename); |
1959 g_free(filename_real); | 1959 g_free(filename_real); |
1960 } | 1960 } |
1961 | 1961 |
1962 gboolean gaim_privacy_permit_add(GaimAccount *account, const char *who) { | |
1963 GSList *d = account->permit; | |
1964 char *n = g_strdup(normalize(who)); | |
1965 while(d) { | |
1966 if(!gaim_utf8_strcasecmp(n, normalize(d->data))) | |
1967 break; | |
1968 d = d->next; | |
1969 } | |
1970 g_free(n); | |
1971 if(!d) { | |
1972 account->permit = g_slist_append(account->permit, g_strdup(who)); | |
1973 return TRUE; | |
1974 } | |
1975 | |
1976 return FALSE; | |
1977 } | |
1978 | |
1979 gboolean gaim_privacy_permit_remove(GaimAccount *account, const char *who) { | |
1980 GSList *d = account->permit; | |
1981 char *n = g_strdup(normalize(who)); | |
1982 while(d) { | |
1983 if(!gaim_utf8_strcasecmp(n, normalize(d->data))) | |
1984 break; | |
1985 d = d->next; | |
1986 } | |
1987 g_free(n); | |
1988 if(d) { | |
1989 account->permit = g_slist_remove(account->permit, d->data); | |
1990 g_free(d->data); | |
1991 return TRUE; | |
1992 } | |
1993 return FALSE; | |
1994 } | |
1995 | |
1996 gboolean gaim_privacy_deny_add(GaimAccount *account, const char *who) { | |
1997 GSList *d = account->deny; | |
1998 char *n = g_strdup(normalize(who)); | |
1999 while(d) { | |
2000 if(!gaim_utf8_strcasecmp(n, normalize(d->data))) | |
2001 break; | |
2002 d = d->next; | |
2003 } | |
2004 g_free(n); | |
2005 if(!d) { | |
2006 account->deny = g_slist_append(account->deny, g_strdup(who)); | |
2007 return TRUE; | |
2008 } | |
2009 | |
2010 return FALSE; | |
2011 } | |
2012 | |
2013 gboolean gaim_privacy_deny_remove(GaimAccount *account, const char *who) { | |
2014 GSList *d = account->deny; | |
2015 char *n = g_strdup(normalize(who)); | |
2016 while(d) { | |
2017 if(!gaim_utf8_strcasecmp(n, normalize(d->data))) | |
2018 break; | |
2019 d = d->next; | |
2020 } | |
2021 g_free(n); | |
2022 if(d) { | |
2023 account->deny = g_slist_remove(account->deny, d->data); | |
2024 g_free(d->data); | |
2025 return TRUE; | |
2026 } | |
2027 return FALSE; | |
2028 } | |
2029 | |
2030 void gaim_group_set_setting(struct group *g, const char *key, | 1962 void gaim_group_set_setting(struct group *g, const char *key, |
2031 const char *value) { | 1963 const char *value) { |
2032 if(!g) | 1964 if(!g) |
2033 return; | 1965 return; |
2034 g_hash_table_replace(g->settings, g_strdup(key), g_strdup(value)); | 1966 g_hash_table_replace(g->settings, g_strdup(key), g_strdup(value)); |