comparison src/dialogs.c @ 5954:fccc33d4b8fa

[gaim-migrate @ 6398] I made serv_set_info or whatever it's called take a const char * I don't really remember why I also made some other small changes There should be no functionality change I'm still struggling to get available messages working. They haunt my dreams. Like the gray gorilla, or the Silhouette of the past, fading into the dim light of the moon. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 25 Jun 2003 04:20:30 +0000
parents a4f2aba0848d
children b432fa240263
comparison
equal deleted inserted replaced
5953:bc71bd31c223 5954:fccc33d4b8fa
1882 GaimConnection *gc; 1882 GaimConnection *gc;
1883 1883
1884 junk = gtk_text_view_get_text(GTK_TEXT_VIEW(b->text), FALSE); 1884 junk = gtk_text_view_get_text(GTK_TEXT_VIEW(b->text), FALSE);
1885 1885
1886 if (b->account) { 1886 if (b->account) {
1887 strncpy_withhtml(b->account->user_info, junk, sizeof b->account->user_info); 1887 gchar *tmp = strdup_withhtml(junk);
1888 gaim_account_set_user_info(b->account, junk);
1889 g_free(tmp);
1888 gc = b->account->gc; 1890 gc = b->account->gc;
1889 1891
1890 if (gc) 1892 if (gc)
1891 serv_set_info(gc, b->account->user_info); 1893 serv_set_info(gc, gaim_account_get_user_info(b->account));
1892 } 1894 }
1893 g_free(junk); 1895 g_free(junk);
1894 destroy_dialog(NULL, b->window); 1896 destroy_dialog(NULL, b->window);
1895 g_free(b); 1897 g_free(b);
1896 } 1898 }
5016 tmp = b->custom(b); 5018 tmp = b->custom(b);
5017 5019
5018 /* 5020 /*
5019 * Set the user info and (possibly) send to the server 5021 * Set the user info and (possibly) send to the server
5020 */ 5022 */
5021 if (b->account) { 5023 if (b->account) {
5022 strncpy(b->account->user_info, tmp, sizeof b->account->user_info); 5024 gaim_account_set_user_info(b->account, tmp);
5023 gc = b->account->gc; 5025 gc = b->account->gc;
5024 5026
5025 if (gc) 5027 if (gc)
5026 serv_set_info(gc, b->account->user_info); 5028 serv_set_info(gc, gaim_account_get_user_info(b->account));
5027 } 5029 }
5028 5030
5029 g_free(tmp); 5031 g_free(tmp);
5030 5032
5031 /* Let multi-edit dialog window "destroy" event catching handle remaining cleanup */ 5033 /* Let multi-edit dialog window "destroy" event catching handle remaining cleanup */
5032 gtk_widget_destroy(GTK_WIDGET (b->window)); 5034 gtk_widget_destroy(GTK_WIDGET (b->window));