comparison src/gtk/view_dialog.c @ 41:4bcfaf6307b5

2002-10-29 Brian Masney <masneyb@gftp.org> * lib/config_file.c lib/gftp.h lib/options.h src/gtk/menu-items.c src/gtk/view_dialog.c - removed tmp_directory variable. Instead use g_get_tmp_dir () * lib/gftp.h (struct gftp_request) - added int cancel : 1 * lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c lib/ssh.c lib/sshv2.c - check for interrupted signal calls * lib/protocols.c - added gftp_fgets() and gftp_fwrite() functions * src/gtk/delete_dialog.c src/gtk/misc-gtk.c src/gtk/transfer.c - use g_main_context_iteration in GTK+ 2.0 port * src/gtk/misc-gtk.c - use g_object_unref instead of gdk_drawable_unref in GTK+ 2.0 port
author masneyb
date Wed, 30 Oct 2002 02:53:21 +0000
parents c8ec7877432e
children 311e29c40ed6
comparison
equal deleted inserted replaced
40:66c064fd05bc 41:4bcfaf6307b5
62 else 62 else
63 { 63 {
64 new_fle = copy_fdata (curfle); 64 new_fle = copy_fdata (curfle);
65 if (new_fle->destfile) 65 if (new_fle->destfile)
66 g_free (new_fle->destfile); 66 g_free (new_fle->destfile);
67 new_fle->destfile = g_strconcat (tmp_directory, "/gftp-view.XXXXXX", NULL); 67 new_fle->destfile = g_strconcat (g_get_tmp_dir (), "/gftp-view.XXXXXX", NULL);
68 if ((fd = mkstemp (new_fle->destfile)) < 0) 68 if ((fd = mkstemp (new_fle->destfile)) < 0)
69 { 69 {
70 ftp_log (gftp_logging_misc, NULL, 70 ftp_log (gftp_logging_misc, NULL,
71 _("Error: Cannot open %s for writing: %s\n"), 71 _("Error: Cannot open %s for writing: %s\n"),
72 new_fle->destfile, g_strerror (errno)); 72 new_fle->destfile, g_strerror (errno));
131 else 131 else
132 { 132 {
133 new_fle = copy_fdata (curfle); 133 new_fle = copy_fdata (curfle);
134 if (new_fle->destfile) 134 if (new_fle->destfile)
135 g_free (new_fle->destfile); 135 g_free (new_fle->destfile);
136 new_fle->destfile = g_strconcat (tmp_directory, "/gftp-view.XXXXXX", 136 new_fle->destfile = g_strconcat (g_get_tmp_dir (), "/gftp-view.XXXXXX",
137 NULL); 137 NULL);
138 if ((fd = mkstemp (new_fle->destfile)) < 0) 138 if ((fd = mkstemp (new_fle->destfile)) < 0)
139 { 139 {
140 ftp_log (gftp_logging_misc, NULL, 140 ftp_log (gftp_logging_misc, NULL,
141 _("Error: Cannot open %s for writing: %s\n"), 141 _("Error: Cannot open %s for writing: %s\n"),