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:
parent
705c13f626
commit
6f9759933c
|
@ -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...
|
||||
|
|
1
src/E.h
1
src/E.h
|
@ -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);
|
||||
|
|
|
@ -362,6 +362,7 @@ main(int argc, char **argv)
|
|||
runDocBrowser();
|
||||
}
|
||||
|
||||
BadThemeDialog();
|
||||
/* The primary event loop */
|
||||
for (;;)
|
||||
WaitEvent();
|
||||
|
|
23
src/theme.c
23
src/theme.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue