mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
use proper property name for SmDiscardCommand (instead of setting the
2002-03-17 Havoc Pennington <hp@pobox.com> * src/session.c (set_clone_restart_commands): use proper property name for SmDiscardCommand (instead of setting the clone command to "rm"). Also fix typo that iterated over clonev not discardv to fill in prop list, and NULL-terminate discardv. #74584 from Kang Jeong-Hee.
This commit is contained in:
parent
42936562de
commit
80cd793f75
@ -1,3 +1,11 @@
|
|||||||
|
2002-03-17 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
|
* src/session.c (set_clone_restart_commands): use proper property
|
||||||
|
name for SmDiscardCommand (instead of setting the clone command to
|
||||||
|
"rm"). Also fix typo that iterated over clonev not discardv to
|
||||||
|
fill in prop list, and NULL-terminate discardv. #74584 from Kang
|
||||||
|
Jeong-Hee.
|
||||||
|
|
||||||
2002-03-13 Havoc Pennington <hp@pobox.com>
|
2002-03-13 Havoc Pennington <hp@pobox.com>
|
||||||
|
|
||||||
* src/main.c (main): put back --sm-client-id argument, needed
|
* src/main.c (main): put back --sm-client-id argument, needed
|
||||||
|
@ -532,13 +532,15 @@ set_clone_restart_commands (void)
|
|||||||
discardv[i] = "-f";
|
discardv[i] = "-f";
|
||||||
++i;
|
++i;
|
||||||
discardv[i] = (char*) full_save_file ();
|
discardv[i] = (char*) full_save_file ();
|
||||||
|
++i;
|
||||||
prop3.name = SmCloneCommand;
|
discardv[i] = NULL;
|
||||||
|
|
||||||
|
prop3.name = SmDiscardCommand;
|
||||||
prop3.type = SmLISTofARRAY8;
|
prop3.type = SmLISTofARRAY8;
|
||||||
|
|
||||||
prop3.vals = g_new (SmPropValue, i);
|
prop3.vals = g_new (SmPropValue, i);
|
||||||
i = 0;
|
i = 0;
|
||||||
while (clonev[i])
|
while (discardv[i])
|
||||||
{
|
{
|
||||||
prop3.vals[i].value = discardv[i];
|
prop3.vals[i].value = discardv[i];
|
||||||
prop3.vals[i].length = strlen (discardv[i]);
|
prop3.vals[i].length = strlen (discardv[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user