Wed Nov 24 12:11:04 PST 1999

(KainX)

Added checks for epplet image classes on startup.  Adapted from a patch by
Troy Pesola <troy.pesola@network.com>.


SVN revision: 1392
This commit is contained in:
Michael Jennings 1999-11-24 17:16:39 +00:00
parent b00a41b4e9
commit 715f7a2a62
2 changed files with 20 additions and 0 deletions

View File

@ -837,3 +837,10 @@ E-UrlWatch.
Now displays the url it launches, and scrolls long urls back and forth, so
you can see 'em.
-------------------------------------------------------------------------------
Wed Nov 24 12:11:04 PST 1999
(KainX)
Added checks for epplet image classes on startup. Adapted from a patch by
Troy Pesola <troy.pesola@network.com>.

View File

@ -173,6 +173,7 @@ Epplet_Init(char *name,
struct utsname ubuf;
MWMHints mwm;
unsigned long val;
char *msg;
w *= 16;
h *= 16;
@ -282,6 +283,18 @@ Epplet_Init(char *name,
Esnprintf(s, sizeof(s), "set info %s", win_info);
ECommsSend(s);
ESYNC;
/* Check if the epplet imageclasses are there. */
ECommsSend("imageclass EPPLET_BUTTON query");
msg = ECommsWaitForMessage();
if (!msg || strstr(msg, "not"))
{
Epplet_dialog_ok("Epplet Error: Your theme does not contain the imageclasses needed to run epplets.");
ESYNC;
exit(1);
}
free(msg);
Epplet_background_properties(win_vert);
sa.sa_handler = Epplet_handle_child;
sa.sa_flags = SA_RESTART;