Mercurial > pidgin.yaz
comparison src/dialogs.c @ 4350:7142f59bec2c
[gaim-migrate @ 4615]
import crash fix
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 19 Jan 2003 23:08:19 +0000 |
parents | 0c68d402f59f |
children | 5fb47ec9bfe4 |
comparison
equal
deleted
inserted
replaced
4349:0c68d402f59f | 4350:7142f59bec2c |
---|---|
3321 | 3321 |
3322 /*------------------------------------------------------------------------*/ | 3322 /*------------------------------------------------------------------------*/ |
3323 /* The dialog for import/export */ | 3323 /* The dialog for import/export */ |
3324 /*------------------------------------------------------------------------*/ | 3324 /*------------------------------------------------------------------------*/ |
3325 | 3325 |
3326 static void do_import_dialog(GtkWidget *w, struct gaim_connection *gc) | 3326 static void do_import_dialog(GtkWidget *w, gpointer data) |
3327 { | 3327 { |
3328 const char *file = gtk_file_selection_get_filename(GTK_FILE_SELECTION(importdialog)); | 3328 const char *file = gtk_file_selection_get_filename(GTK_FILE_SELECTION(importdialog)); |
3329 if (file_is_dir(file, importdialog)) { | 3329 if (file_is_dir(file, importdialog)) { |
3330 return; | 3330 return; |
3331 } | 3331 } |
3332 if (g_slist_find(connections, importgc)) { | 3332 if (g_slist_find(connections, importgc)) { |
3333 do_import(gc->user, file); | 3333 do_import(importgc->user, file); |
3334 gaim_blist_save(); | 3334 gaim_blist_save(); |
3335 } | 3335 } |
3336 destroy_dialog(NULL, importdialog); | 3336 destroy_dialog(NULL, importdialog); |
3337 } | 3337 } |
3338 | 3338 |