comparison src/gtk/transfer.c @ 234:251845fc1ef1

2003-7-25 Brian Masney <masneyb@gftp.org> * src/gtk/transfer.c - changed looking up of overwrite_by_default to overwrite_default * src/text/gftp-text.h - fix for when the readline library was not found on the local system
author masneyb
date Fri, 25 Jul 2003 20:39:35 +0000
parents 6de9a8280aa4
children 290d00853950
comparison
equal deleted inserted replaced
233:a5205627a66f 234:251845fc1ef1
1872 gftp_gtk_ask_transfer (gftp_transfer * tdata) 1872 gftp_gtk_ask_transfer (gftp_transfer * tdata)
1873 { 1873 {
1874 char *dltitles[4], *add_data[4] = { NULL, NULL, NULL, NULL }, 1874 char *dltitles[4], *add_data[4] = { NULL, NULL, NULL, NULL },
1875 tempstr[50], temp1str[50], *pos, *title; 1875 tempstr[50], temp1str[50], *pos, *title;
1876 GtkWidget * tempwid, * scroll, * hbox; 1876 GtkWidget * tempwid, * scroll, * hbox;
1877 int i, overwrite_by_default; 1877 int i, overwrite_default;
1878 gftp_file * tempfle; 1878 gftp_file * tempfle;
1879 GList * templist; 1879 GList * templist;
1880 size_t len; 1880 size_t len;
1881 1881
1882 dltitles[0] = _("Filename"); 1882 dltitles[0] = _("Filename");
1941 gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), scroll, TRUE, TRUE, 1941 gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), scroll, TRUE, TRUE,
1942 0); 1942 0);
1943 gtk_widget_show (tdata->clist); 1943 gtk_widget_show (tdata->clist);
1944 gtk_widget_show (scroll); 1944 gtk_widget_show (scroll);
1945 1945
1946 gftp_lookup_request_option (tdata->fromreq, "overwrite_by_default", 1946 gftp_lookup_request_option (tdata->fromreq, "overwrite_default",
1947 &overwrite_by_default); 1947 &overwrite_default);
1948 1948
1949 for (templist = tdata->files; templist != NULL; 1949 for (templist = tdata->files; templist != NULL;
1950 templist = templist->next) 1950 templist = templist->next)
1951 { 1951 {
1952 tempfle = templist->data; 1952 tempfle = templist->data;
1961 len = strlen (tdata->toreq->directory); 1961 len = strlen (tdata->toreq->directory);
1962 if (strncmp (pos, tdata->toreq->directory, len) == 0) 1962 if (strncmp (pos, tdata->toreq->directory, len) == 0)
1963 pos = tempfle->destfile + len + 1; 1963 pos = tempfle->destfile + len + 1;
1964 add_data[0] = pos; 1964 add_data[0] = pos;
1965 1965
1966 if (overwrite_by_default) 1966 if (overwrite_default)
1967 add_data[3] = _("Overwrite"); 1967 add_data[3] = _("Overwrite");
1968 else 1968 else
1969 { 1969 {
1970 if (tempfle->startsize >= tempfle->size) 1970 if (tempfle->startsize >= tempfle->size)
1971 { 1971 {