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:
Tom Tromey 1998-05-15 05:43:31 +00:00
parent c08415b616
commit ae64700c0e
2 changed files with 11 additions and 4 deletions

View File

@ -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> 1998-05-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gtrans.c (create_transparent_text_window): Removed the hack to * gtrans.c (create_transparent_text_window): Removed the hack to

View File

@ -1,7 +1,7 @@
/* /*
* Midnight Commander -- GNOME frontend * 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) * 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_origin (GTK_WIDGET (pc->panel->widget.wdata)->window, &x, &y);
gdk_window_get_size (GTK_WIDGET (pc->panel->widget.wdata)->window, &w, &h); 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++] = pc->panel->cwd;
argv [i++] = "--geometry"; argv [i++] = "--geometry";
argv [i++] = buffer; argv [i++] = buffer;
@ -554,6 +554,8 @@ session_save_state (GnomeClient *client, gint phase, GnomeRestartStyle save_styl
g_free (l->data); g_free (l->data);
g_list_free (free_list); g_list_free (free_list);
g_free (argv);
return 1; return 1;
} }