| 2449 const char *current_folder; |
2449 const char *current_folder; |
| 2450 |
2450 |
| 2451 dialog->callback = callback; |
2451 dialog->callback = callback; |
| 2452 dialog->data = data; |
2452 dialog->data = data; |
| 2453 |
2453 |
| 2454 if (dialog->icon_filesel != NULL) { |
|
| 2455 gtk_window_present(GTK_WINDOW(dialog->icon_filesel)); |
|
| 2456 return NULL; |
|
| 2457 } |
|
| 2458 |
|
| 2459 current_folder = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/filelocations/last_icon_folder"); |
2454 current_folder = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/filelocations/last_icon_folder"); |
| 2460 #if GTK_CHECK_VERSION(2,4,0) /* FILECHOOSER */ |
2455 #if GTK_CHECK_VERSION(2,4,0) /* FILECHOOSER */ |
| 2461 |
2456 |
| 2462 dialog->icon_filesel = gtk_file_chooser_dialog_new(_("Buddy Icon"), |
2457 dialog->icon_filesel = gtk_file_chooser_dialog_new(_("Buddy Icon"), |
| 2463 parent, |
2458 parent, |