mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Thu May 14 23:31:15 1998 Tom Tromey <tromey@cygnus.com>
* gmain.c (session_save_state): Use "+" instead of "%s" in format specification. Free `argv'.
This commit is contained in:
parent
c08415b616
commit
ae64700c0e
@ -1,3 +1,8 @@
|
||||
Thu May 14 23:31:15 1998 Tom Tromey <tromey@cygnus.com>
|
||||
|
||||
* gmain.c (session_save_state): Use "+" instead of "%s" in format
|
||||
specification. Free `argv'.
|
||||
|
||||
1998-05-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gtrans.c (create_transparent_text_window): Removed the hack to
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Midnight Commander -- GNOME frontend
|
||||
*
|
||||
* Copyright (C) 1997 The Free Software Foundation
|
||||
* Copyright (C) 1997, 1998 The Free Software Foundation
|
||||
*
|
||||
* Author: Miguel de Icaza (miguel@gnu.org)
|
||||
*
|
||||
@ -534,7 +534,7 @@ session_save_state (GnomeClient *client, gint phase, GnomeRestartStyle save_styl
|
||||
|
||||
gdk_window_get_origin (GTK_WIDGET (pc->panel->widget.wdata)->window, &x, &y);
|
||||
gdk_window_get_size (GTK_WIDGET (pc->panel->widget.wdata)->window, &w, &h);
|
||||
sprintf (buffer, "%dx%d%s%d%s%d", w, h, x, y);
|
||||
sprintf (buffer, "%dx%d+%d+%d", w, h, x, y);
|
||||
argv [i++] = pc->panel->cwd;
|
||||
argv [i++] = "--geometry";
|
||||
argv [i++] = buffer;
|
||||
@ -554,6 +554,8 @@ session_save_state (GnomeClient *client, gint phase, GnomeRestartStyle save_styl
|
||||
g_free (l->data);
|
||||
g_list_free (free_list);
|
||||
|
||||
g_free (argv);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user