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)
|
(Raster)
|
||||||
|
|
||||||
change menu scroll dist to 4 pixels
|
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 *FindFile(char *file);
|
||||||
char *FindNoThemeFile(char *file);
|
char *FindNoThemeFile(char *file);
|
||||||
char *FindTheme(char *theme);
|
char *FindTheme(char *theme);
|
||||||
|
void BadThemeDialog(void);
|
||||||
int LoadEConfig(char *themelocation);
|
int LoadEConfig(char *themelocation);
|
||||||
void SaveUserControlConfig(FILE * autosavefile);
|
void SaveUserControlConfig(FILE * autosavefile);
|
||||||
void RecoverUserConfig(void);
|
void RecoverUserConfig(void);
|
||||||
|
|
|
@ -362,6 +362,7 @@ main(int argc, char **argv)
|
||||||
runDocBrowser();
|
runDocBrowser();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BadThemeDialog();
|
||||||
/* The primary event loop */
|
/* The primary event loop */
|
||||||
for (;;)
|
for (;;)
|
||||||
WaitEvent();
|
WaitEvent();
|
||||||
|
|
23
src/theme.c
23
src/theme.c
|
@ -214,6 +214,8 @@ ExtractTheme(char *theme)
|
||||||
EDBUG_RETURN(NULL);
|
EDBUG_RETURN(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char *badtheme = NULL;
|
||||||
|
|
||||||
char *
|
char *
|
||||||
FindTheme(char *theme)
|
FindTheme(char *theme)
|
||||||
{
|
{
|
||||||
|
@ -239,8 +241,27 @@ FindTheme(char *theme)
|
||||||
if (exists(s))
|
if (exists(s))
|
||||||
ret = ExtractTheme(s);
|
ret = ExtractTheme(s);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = GetDefaultTheme();
|
{
|
||||||
|
ret = GetDefaultTheme();
|
||||||
|
badtheme = duplicate(theme);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
EDBUG_RETURN(ret);
|
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