Sun Oct 3 12:03:22 PDT 1999

(Raster)

bad theme dialog added so people knwo they chose a bad theme...


SVN revision: 608
This commit is contained in:
Carsten Haitzler 1999-10-03 16:24:00 +00:00
parent 705c13f626
commit 6f9759933c
4 changed files with 31 additions and 1 deletions

View File

@ -2871,3 +2871,10 @@ Sun Oct 3 11:45:28 PDT 1999
(Raster)
change menu scroll dist to 4 pixels
-------------------------------------------------------------------------------
Sun Oct 3 12:03:22 PDT 1999
(Raster)
bad theme dialog added so people knwo they chose a bad theme...

View File

@ -2336,6 +2336,7 @@ char *ExtractTheme(char *theme);
char *FindFile(char *file);
char *FindNoThemeFile(char *file);
char *FindTheme(char *theme);
void BadThemeDialog(void);
int LoadEConfig(char *themelocation);
void SaveUserControlConfig(FILE * autosavefile);
void RecoverUserConfig(void);

View File

@ -362,6 +362,7 @@ main(int argc, char **argv)
runDocBrowser();
}
BadThemeDialog();
/* The primary event loop */
for (;;)
WaitEvent();

View File

@ -214,6 +214,8 @@ ExtractTheme(char *theme)
EDBUG_RETURN(NULL);
}
static char *badtheme = NULL;
char *
FindTheme(char *theme)
{
@ -239,8 +241,27 @@ FindTheme(char *theme)
if (exists(s))
ret = ExtractTheme(s);
if (!ret)
ret = GetDefaultTheme();
{
ret = GetDefaultTheme();
badtheme = duplicate(theme);
}
}
}
EDBUG_RETURN(ret);
}
void
BadThemeDialog(void)
{
char s[1024];
if (!badtheme)
return;
Esnprintf(s, sizeof(s),
"The theme:\n"
"%s\n"
"Is a badly formed theme package and is thus not being used.\n"
"Enlightenment has fallen back to using the DEFAULT theme.\n");
DIALOG_OK("Bad Theme", s);
}