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:
Michael Jennings 1999-09-23 00:18:06 +00:00
parent 5066778a61
commit 7efb7f85f7
2 changed files with 21 additions and 0 deletions

View File

@ -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.

View File

@ -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),