Mercurial > pidgin.yaz
changeset 5770:a86051df9122
[gaim-migrate @ 6195]
Smiley preferences save again.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 06 Jun 2003 07:54:00 +0000 |
parents | 0f9b5737e5fe |
children | f63a008726c6 |
files | src/gtkprefs.c |
diffstat | 1 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkprefs.c Fri Jun 06 04:48:31 2003 +0000 +++ b/src/gtkprefs.c Fri Jun 06 07:54:00 2003 +0000 @@ -456,7 +456,7 @@ return; gtk_tree_model_get_value (model, &iter, 2, &val); filename = g_value_get_string(&val); - load_smiley_theme(filename, TRUE); + gaim_prefs_set_string("/gaim/gtk/smileys/theme", filename); g_value_unset (&val); } @@ -2748,6 +2748,13 @@ gaim_conversation_foreach(gaim_gtkconv_update_font_face); } +static void +smiley_theme_pref_cb(const char *name, GaimPrefType type, gpointer value, + gpointer data) +{ + load_smiley_theme((const char *)value, TRUE); +} + void gaim_gtk_prefs_init(void) { @@ -2809,7 +2816,10 @@ /* Smiley Themes */ gaim_prefs_add_none("/gaim/gtk/smileys"); - gaim_prefs_add_string("/gaim/gtk/smileys/theme", ""); - + gaim_prefs_add_string("/gaim/gtk/smileys/theme", "default"); + + /* Smiley Callbacks */ + gaim_prefs_connect_callback("/gaim/gtk/smileys/theme", + smiley_theme_pref_cb, NULL); }