Mercurial > pidgin.yaz
comparison src/gtkrequest.c @ 9503:d822b19b751c
[gaim-migrate @ 10330]
I'm really just trying to break some kind of commit record.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 10 Jul 2004 18:50:39 +0000 |
parents | 578986136bac |
children | c6ecd07aed6f |
comparison
equal
deleted
inserted
replaced
9502:578986136bac | 9503:d822b19b751c |
---|---|
1374 | 1374 |
1375 data->u.file.name = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(data->dialog)); | 1375 data->u.file.name = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(data->dialog)); |
1376 #else /* FILECHOOSER */ | 1376 #else /* FILECHOOSER */ |
1377 file_ok_check_if_exists_cb(GtkWidget *button, GaimGtkRequestData *data) | 1377 file_ok_check_if_exists_cb(GtkWidget *button, GaimGtkRequestData *data) |
1378 { | 1378 { |
1379 gchar *name; | 1379 const gchar *name; |
1380 | 1380 |
1381 name = gtk_file_selection_get_filename(GTK_FILE_SELECTION(data->dialog))); | 1381 name = gtk_file_selection_get_filename(GTK_FILE_SELECTION(data->dialog)); |
1382 if (gaim_gtk_check_if_dir(name, GTK_FILE_SELECTION(data->dialog))) | 1382 if (gaim_gtk_check_if_dir(name, GTK_FILE_SELECTION(data->dialog))) |
1383 /* Descend into directory? */ | 1383 /* Descend into directory? */ |
1384 /* Close dialog? */ | 1384 /* Close dialog? */ |
1385 return; | 1385 return; |
1386 data->u.file.name = name; | 1386 data->u.file.name = g_strdup(name); |
1387 #endif /* FILECHOOSER */ | 1387 #endif /* FILECHOOSER */ |
1388 | 1388 |
1389 if ((data->u.file.savedialog == TRUE) && | 1389 if ((data->u.file.savedialog == TRUE) && |
1390 (g_file_test(data->u.file.name, G_FILE_TEST_EXISTS))) { | 1390 (g_file_test(data->u.file.name, G_FILE_TEST_EXISTS))) { |
1391 gaim_request_yes_no(data, NULL, _("That file already exists"), | 1391 gaim_request_yes_no(data, NULL, _("That file already exists"), |