forked from enlightenment/terminology
add miniview_init/shutdown
This commit is contained in:
parent
23d3944b76
commit
e06f4ee3a3
|
@ -3109,8 +3109,13 @@ remote:
|
||||||
|
|
||||||
ty_dbus_init();
|
ty_dbus_init();
|
||||||
|
|
||||||
|
|
||||||
|
miniview_init();
|
||||||
|
|
||||||
elm_run();
|
elm_run();
|
||||||
|
|
||||||
|
miniview_shutdown();
|
||||||
|
|
||||||
app_server_shutdown();
|
app_server_shutdown();
|
||||||
|
|
||||||
ty_dbus_shutdown();
|
ty_dbus_shutdown();
|
||||||
|
|
|
@ -3,6 +3,43 @@
|
||||||
#include "col.h"
|
#include "col.h"
|
||||||
#include "termpty.h"
|
#include "termpty.h"
|
||||||
#include "termio.h"
|
#include "termio.h"
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
/* specific log domain to help debug only miniview */
|
||||||
|
int _miniview_log_dom = -1;
|
||||||
|
|
||||||
|
#undef CRITICAL
|
||||||
|
#undef ERR
|
||||||
|
#undef WRN
|
||||||
|
#undef INF
|
||||||
|
#undef DBG
|
||||||
|
|
||||||
|
#define CRIT(...) EINA_LOG_DOM_CRIT(_miniview_log_dom, __VA_ARGS__)
|
||||||
|
#define ERR(...) EINA_LOG_DOM_ERR(_miniview_log_dom, __VA_ARGS__)
|
||||||
|
#define WRN(...) EINA_LOG_DOM_WARN(_miniview_log_dom, __VA_ARGS__)
|
||||||
|
#define INF(...) EINA_LOG_DOM_INFO(_miniview_log_dom, __VA_ARGS__)
|
||||||
|
#define DBG(...) EINA_LOG_DOM_DBG(_miniview_log_dom, __VA_ARGS__)
|
||||||
|
|
||||||
|
void
|
||||||
|
miniview_init(void)
|
||||||
|
{
|
||||||
|
if (_miniview_log_dom >= 0) return;
|
||||||
|
|
||||||
|
_miniview_log_dom = eina_log_domain_register("miniview", NULL);
|
||||||
|
if (_miniview_log_dom < 0)
|
||||||
|
EINA_LOG_CRIT("could not create log domain 'miniview'.");
|
||||||
|
|
||||||
|
ERR("INIT");
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
miniview_shutdown(void)
|
||||||
|
{
|
||||||
|
if (_miniview_log_dom < 0) return;
|
||||||
|
ERR("SHUTDOWN");
|
||||||
|
eina_log_domain_unregister(_miniview_log_dom);
|
||||||
|
_miniview_log_dom = -1;
|
||||||
|
}
|
||||||
|
|
||||||
typedef struct _Miniview Miniview;
|
typedef struct _Miniview Miniview;
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,7 @@ void miniview_update_scroll(Evas_Object *obj, int scroll_position);
|
||||||
Evas_Object * miniview_add(Evas_Object *parent, int fontw, int fonth, Termpty *pty,
|
Evas_Object * miniview_add(Evas_Object *parent, int fontw, int fonth, Termpty *pty,
|
||||||
int scroll_position, int x, int y, int w, int h);
|
int scroll_position, int x, int y, int w, int h);
|
||||||
void miniview_hide(Evas_Object *obj);
|
void miniview_hide(Evas_Object *obj);
|
||||||
|
|
||||||
|
void miniview_init(void);
|
||||||
|
void miniview_shutdown(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue