Wed Oct 13 18:51:30 EST 1999
(Christian) Added an IPC call for obtaining the current theme. SVN revision: 812
This commit is contained in:
parent
085784ae21
commit
25b52a9fa6
|
@ -3498,3 +3498,10 @@ Wed Oct 13 12:24:18 PDT 1999
|
|||
|
||||
um... ipc bug.. DONT reply for the rememebr ipc... oh and spawn snapped
|
||||
commands later :)
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Wed Oct 13 18:51:30 EST 1999
|
||||
(Christian)
|
||||
|
||||
Added an IPC call for obtaining the current theme.
|
||||
|
|
23
src/ipc.c
23
src/ipc.c
|
@ -79,6 +79,7 @@ void IPC_DockPosition(char *params, Client * c);
|
|||
void IPC_KDE(char *params, Client * c);
|
||||
void IPC_MemDebug(char *params, Client * c);
|
||||
void IPC_Remember(char *params, Client * c);
|
||||
void IPC_CurrentTheme(char *params, Client * c);
|
||||
void IPC_Nop(char *params, Client * c);
|
||||
|
||||
/* Changes By Asmodean_ <naru@caltech.edu> / #E@Efnet
|
||||
|
@ -584,6 +585,11 @@ IPCStruct IPCArray[] =
|
|||
" remember <windowid> <parameter>\n"
|
||||
" where parameter is one of: all, none, border, desktop, size,\n"
|
||||
" location, layer, sticky, icon, shade, group, dialog, command\n"
|
||||
},
|
||||
{
|
||||
IPC_CurrentTheme,
|
||||
"current_theme",
|
||||
"Returns the name of the currently used theme",
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -4554,6 +4560,23 @@ IPC_DefaultTheme(char *params, Client * c)
|
|||
|
||||
}
|
||||
|
||||
void
|
||||
IPC_CurrentTheme(char *params, Client * c)
|
||||
{
|
||||
|
||||
char buf[FILEPATH_LEN_MAX];
|
||||
|
||||
buf[0] = 0;
|
||||
|
||||
Esnprintf(buf, sizeof(buf), themepath);
|
||||
|
||||
if (buf[0])
|
||||
CommsSend(c, buf);
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
IPC_AutoSave(char *params, Client * c)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue