comparison src/gtkaccount.c @ 5842:dbed8c87f750

[gaim-migrate @ 6273] Another reason not to use CVS. This saves your buddy icons to the OSCAR servers (I hope). It's not fully tested and it may screw things up, but I wanted to get it in CVS so other people can try to break this, and KingAnt can review my work (that libfaim wizard that he is.) Don't use CVS. I'd like to thank Christian Hammond, for his work on the account and prpl APIs that made it so easy to add the hook into buddy icon changing. I'd like to thank Mark Doliner for laying most of the groundwork and for his kind words of encouragement. I'd like to thank myself for making the buddy icon selector real sexy-like. I'd like to thank the Lord almighty for giving me the strength to do this. I promised myself I wouldn't cry. I never imagined I'd be committing this. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 12 Jun 2003 22:19:07 +0000
parents 8f5ccf9e590a
children 540bd1680b93
comparison
equal deleted inserted replaced
5841:eeb72d03e189 5842:dbed8c87f750
208 *gtk_entry_get_text(entry) != '\0'); 208 *gtk_entry_get_text(entry) != '\0');
209 } 209 }
210 210
211 static void buddy_icon_filesel_delete_cb (GtkWidget *w, AccountPrefsDialog *dialog) 211 static void buddy_icon_filesel_delete_cb (GtkWidget *w, AccountPrefsDialog *dialog)
212 { 212 {
213 gtk_widget_destroy(dialog->buddy_icon_filesel);
214 dialog->buddy_icon_filesel = NULL; 213 dialog->buddy_icon_filesel = NULL;
215 } 214 }
216 215
217 static void buddy_icon_filesel_choose (GtkWidget *w, AccountPrefsDialog *dialog) 216 static void buddy_icon_filesel_choose (GtkWidget *w, AccountPrefsDialog *dialog)
218 { 217 {
282 sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv)); 281 sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(tv));
283 g_signal_connect(G_OBJECT(sel), "changed", G_CALLBACK(buddy_icon_preview_change_cb), dialog); 282 g_signal_connect(G_OBJECT(sel), "changed", G_CALLBACK(buddy_icon_preview_change_cb), dialog);
284 283
285 g_signal_connect(G_OBJECT(dialog->buddy_icon_filesel), "delete-event", G_CALLBACK(buddy_icon_filesel_delete_cb), dialog); 284 g_signal_connect(G_OBJECT(dialog->buddy_icon_filesel), "delete-event", G_CALLBACK(buddy_icon_filesel_delete_cb), dialog);
286 g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(dialog->buddy_icon_filesel)->cancel_button), "clicked", 285 g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(dialog->buddy_icon_filesel)->cancel_button), "clicked",
287 G_CALLBACK(buddy_icon_filesel_delete_cb), dialog); 286 G_CALLBACK(gtk_widget_destroy), NULL);
288 g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(dialog->buddy_icon_filesel)->ok_button), "clicked", G_CALLBACK(buddy_icon_filesel_choose), 287 g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(dialog->buddy_icon_filesel)->ok_button), "clicked", G_CALLBACK(buddy_icon_filesel_choose),
289 dialog); 288 dialog);
290 289
291 gtk_widget_show_all(dialog->buddy_icon_filesel); 290 gtk_widget_show_all(dialog->buddy_icon_filesel);
292 if (dialog->account) { 291 if (dialog->account) {