mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
4.5.28 - Federico
This commit is contained in:
parent
52dddb7598
commit
d2b3c007b3
@ -1,3 +1,7 @@
|
||||
1999-03-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* configure.in (VERSION): bumped version number to 4.5.28.
|
||||
|
||||
Fri Mar 26 19:16:38 1999 Timur Bakeyev <mc@bat.ru>
|
||||
|
||||
* */Makefie.*: fixed several missed conversions from libdir to
|
||||
|
@ -5,7 +5,7 @@ AC_INIT(create_vcs)
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
PACKAGE=mc
|
||||
VERSION=4.5.27
|
||||
VERSION=4.5.28
|
||||
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
|
||||
AC_SUBST(VERSION)
|
||||
|
@ -1,3 +1,14 @@
|
||||
1999-03-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* mc.keys.in: Now that the menu code uses the full filename, we do
|
||||
not need "%d/%f" for html files.
|
||||
|
||||
1999-03-25 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdialogs.c (file_progress_show_bytes): Total may be zero (for
|
||||
instance, if you are copying zero-byte files). Take this into
|
||||
account instead of issuing a warning.
|
||||
|
||||
1999-03-25 Jonathan Blandford <jrb@redhat.com>
|
||||
|
||||
* gdesktop.c (set_background_image): now we can set the background
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <config.h>
|
||||
#include "panel.h"
|
||||
#include <gnome.h>
|
||||
#include "dialog.h"
|
||||
#include "global.h"
|
||||
#include "file.h"
|
||||
#include "filegui.h"
|
||||
@ -281,7 +282,7 @@ file_progress_show_bytes (FileOpContext *ctx, double done, double total)
|
||||
double perc;
|
||||
|
||||
g_return_val_if_fail (ctx != NULL, FILE_CONT);
|
||||
g_return_val_if_fail (total > 0, FILE_CONT);
|
||||
|
||||
/* ctx->ui might be NULL for background processes */
|
||||
if (ctx->ui == NULL)
|
||||
return FILE_CONT;
|
||||
@ -291,7 +292,11 @@ file_progress_show_bytes (FileOpContext *ctx, double done, double total)
|
||||
if (ui->aborting)
|
||||
return FILE_ABORT;
|
||||
|
||||
perc = done / total;
|
||||
if (total == 0.0)
|
||||
perc = 1.0;
|
||||
else
|
||||
perc = done / total;
|
||||
|
||||
gtk_progress_bar_update (GTK_PROGRESS_BAR (ui->byte_prog), CLAMP (perc, 0.0, 1.0));
|
||||
|
||||
while (gtk_events_pending ())
|
||||
|
@ -1,3 +1,11 @@
|
||||
1999-03-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
Patch courtesy of John Bley (jbb6@acpub.duke.edu):
|
||||
|
||||
* background.c (do_background): Use pid_t instead of int.
|
||||
|
||||
* subshell.c (sigchld_handler): Likewise.
|
||||
|
||||
1999-03-24 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* Makefile.in: Use mcsrclibdir where appropriate.
|
||||
|
@ -127,7 +127,7 @@ int
|
||||
do_background (FileOpContext *ctx, char *info)
|
||||
{
|
||||
int comm [2]; /* control connection stream */
|
||||
int pid;
|
||||
pid_t pid;
|
||||
|
||||
if (socketpair (AF_UNIX, SOCK_STREAM, 0, comm) == -1)
|
||||
return -1;
|
||||
|
@ -816,7 +816,8 @@ void subshell_get_console_attributes (void)
|
||||
|
||||
void sigchld_handler (int sig)
|
||||
{
|
||||
int pid, status;
|
||||
int status;
|
||||
pid_t pid;
|
||||
|
||||
pid = waitpid (subshell_pid, &status, WUNTRACED | WNOHANG);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user