Wed Sep 22 17:55:48 PDT 1999
(KainX) Added a "query" command to the imageclass IPC. This is for an Eterm feature. SVN revision: 376
This commit is contained in:
parent
5066778a61
commit
7efb7f85f7
|
@ -2227,3 +2227,11 @@ Wed Sep 22 16:39:43 PDT 1999
|
|||
|
||||
moved kde client change property handler a little, but I don't think this is
|
||||
going to make a difference.
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Wed Sep 22 17:55:48 PDT 1999
|
||||
(KainX)
|
||||
|
||||
Added a "query" command to the imageclass IPC. This is for an Eterm
|
||||
feature.
|
||||
|
|
13
src/ipc.c
13
src/ipc.c
|
@ -1514,6 +1514,19 @@ IPC_ImageClass(char *params, Client * c)
|
|||
Esnprintf(buf, sizeof(buf), "%u references remain.\n",
|
||||
i->ref_count);
|
||||
}
|
||||
else if (!strcmp(param2, "query"))
|
||||
{
|
||||
ImageClass *i;
|
||||
|
||||
i = (ImageClass *) FindItem(param1, 0, LIST_FINDBY_NAME,
|
||||
LIST_TYPE_ICLASS);
|
||||
if (i)
|
||||
Esnprintf(buf, sizeof(buf), "ImageClass %s found.\n",
|
||||
i->name);
|
||||
else
|
||||
Esnprintf(buf, sizeof(buf), "ImageClass %s not found.\n",
|
||||
param1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Esnprintf(buf, sizeof(buf),
|
||||
|
|
Loading…
Reference in New Issue