mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
reorder declarations so we don't break C89 compilers.
2008-04-07 Jens Granseuer <jensgr@gmx.net> * src/core/session.c: (save_state), (warn_about_lame_clients_and_finish_interact): reorder declarations so we don't break C89 compilers. svn path=/trunk/; revision=3677
This commit is contained in:
parent
300be6e03b
commit
48261330de
@ -1,3 +1,9 @@
|
|||||||
|
2008-04-07 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
|
* src/core/session.c: (save_state),
|
||||||
|
(warn_about_lame_clients_and_finish_interact):
|
||||||
|
reorder declarations so we don't break C89 compilers.
|
||||||
|
|
||||||
2008-04-06 Thomas Thurman <tthurman@gnome.org>
|
2008-04-06 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
* NEWS: 2.23.5 release.
|
* NEWS: 2.23.5 release.
|
||||||
|
@ -807,6 +807,9 @@ save_state (void)
|
|||||||
char *metacity_dir;
|
char *metacity_dir;
|
||||||
char *session_dir;
|
char *session_dir;
|
||||||
FILE *outfile;
|
FILE *outfile;
|
||||||
|
GSList *windows;
|
||||||
|
GSList *tmp;
|
||||||
|
int stack_position;
|
||||||
|
|
||||||
g_assert (client_id);
|
g_assert (client_id);
|
||||||
|
|
||||||
@ -871,11 +874,10 @@ save_state (void)
|
|||||||
|
|
||||||
fprintf (outfile, "<metacity_session id=\"%s\">\n",
|
fprintf (outfile, "<metacity_session id=\"%s\">\n",
|
||||||
client_id);
|
client_id);
|
||||||
|
|
||||||
GSList *windows = meta_display_list_windows (meta_get_display ());
|
windows = meta_display_list_windows (meta_get_display ());
|
||||||
GSList *tmp;
|
stack_position = 0;
|
||||||
int stack_position = 0;
|
|
||||||
|
|
||||||
windows = g_slist_sort (windows, meta_display_stack_cmp);
|
windows = g_slist_sort (windows, meta_display_stack_cmp);
|
||||||
tmp = windows;
|
tmp = windows;
|
||||||
stack_position = 0;
|
stack_position = 0;
|
||||||
@ -1782,6 +1784,7 @@ static void
|
|||||||
warn_about_lame_clients_and_finish_interact (gboolean shutdown)
|
warn_about_lame_clients_and_finish_interact (gboolean shutdown)
|
||||||
{
|
{
|
||||||
GSList *lame;
|
GSList *lame;
|
||||||
|
GSList *windows;
|
||||||
char **argv;
|
char **argv;
|
||||||
int i;
|
int i;
|
||||||
GSList *tmp;
|
GSList *tmp;
|
||||||
@ -1795,7 +1798,7 @@ warn_about_lame_clients_and_finish_interact (gboolean shutdown)
|
|||||||
char timestampbuf[32];
|
char timestampbuf[32];
|
||||||
|
|
||||||
lame = NULL;
|
lame = NULL;
|
||||||
GSList *windows = meta_display_list_windows (meta_get_display ());
|
windows = meta_display_list_windows (meta_get_display ());
|
||||||
tmp = windows;
|
tmp = windows;
|
||||||
while (tmp != NULL)
|
while (tmp != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user