git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
we don't have positioner support so we don't need a config menu for it
[enigma2.git]
/
main
/
enigma.cpp
diff --git
a/main/enigma.cpp
b/main/enigma.cpp
index f1eb6cc9b775f73788cadee21aa8c2352d545d52..9c2a5ed6905495a11031c0f780e2113add946ba0 100644
(file)
--- a/
main/enigma.cpp
+++ b/
main/enigma.cpp
@@
-136,6
+136,7
@@
public:
~eMain()
{
~eMain()
{
+ m_dvbdb->save();
m_scan = 0;
}
};
m_scan = 0;
}
};
@@
-144,12
+145,18
@@
public:
eLabel *lcd_label, *lcd_clock;
eLabel *lcd_label, *lcd_clock;
+int exit_code;
+
int main(int argc, char **argv)
{
#ifdef OBJECT_DEBUG
atexit(object_dump);
#endif
int main(int argc, char **argv)
{
#ifdef OBJECT_DEBUG
atexit(object_dump);
#endif
+ // set pythonpath if unset
+ setenv("PYTHONPATH", LIBDIR "/enigma2/python", 0);
+ printf("PYTHONPATH: %s\n", getenv("PYTHONPATH"));
+
ePython python;
eMain main;
ePython python;
eMain main;
@@
-175,11
+182,11
@@
int main(int argc, char **argv)
eWidgetDesktop dsk(eSize(720, 576));
eWidgetDesktop dsk_lcd(eSize(132, 64));
eWidgetDesktop dsk(eSize(720, 576));
eWidgetDesktop dsk_lcd(eSize(132, 64));
-
if (double_buffer)
+
/*
if (double_buffer)
{
eDebug(" - double buffering found, enable buffered graphics mode.");
dsk.setCompositionMode(eWidgetDesktop::cmBuffered);
{
eDebug(" - double buffering found, enable buffered graphics mode.");
dsk.setCompositionMode(eWidgetDesktop::cmBuffered);
- }
+ }
*/
wdsk = &dsk;
lcddsk = &dsk_lcd;
wdsk = &dsk;
lcddsk = &dsk_lcd;
@@
-188,10
+195,10
@@
int main(int argc, char **argv)
dsk_lcd.setDC(my_lcd_dc);
ePtr<gPixmap> m_pm;
dsk_lcd.setDC(my_lcd_dc);
ePtr<gPixmap> m_pm;
- loadPNG(m_pm,
"data
/pal.png");
+ loadPNG(m_pm,
DATADIR "/enigma2
/pal.png");
if (!m_pm)
{
if (!m_pm)
{
- eFatal("
hi ghost, please copy pal.png into your ./data, thanks
!");
+ eFatal("
pal.png not found
!");
} else
dsk.setPalette(*m_pm);
} else
dsk.setPalette(*m_pm);
@@
-234,7
+241,7
@@
int main(int argc, char **argv)
// eApp->exec();
// eApp->exec();
- return
0
;
+ return
exit_code
;
}
eWidgetDesktop *getDesktop()
}
eWidgetDesktop *getDesktop()
@@
-244,12
+251,12
@@
eWidgetDesktop *getDesktop()
void runMainloop()
{
void runMainloop()
{
- eApp->exec();
+ e
xit_code = e
App->exec();
}
}
-void quitMainloop()
+void quitMainloop(
int exitCode
)
{
{
- eApp->quit(
0
);
+ eApp->quit(
exitCode
);
}
void setLCD(const char *string)
}
void setLCD(const char *string)