forked from enlightenment/enlightenment
parent
0b63bf0067
commit
9d9ce41db0
|
@ -37,7 +37,7 @@ static void _menu_cb_post(void *data, E_Menu *m);
|
||||||
static void _cpufreq_set_governor(const char *governor);
|
static void _cpufreq_set_governor(const char *governor);
|
||||||
static void _cpufreq_set_frequency(int frequency);
|
static void _cpufreq_set_frequency(int frequency);
|
||||||
static Eina_Bool _cpufreq_cb_check(void *data);
|
static Eina_Bool _cpufreq_cb_check(void *data);
|
||||||
static Status *_cpufreq_status_new();
|
static Status *_cpufreq_status_new(void);
|
||||||
static void _cpufreq_status_free(Status *s);
|
static void _cpufreq_status_free(Status *s);
|
||||||
static int _cpufreq_status_check_available(Status *s);
|
static int _cpufreq_status_check_available(Status *s);
|
||||||
static int _cpufreq_status_check_current(Status *s);
|
static int _cpufreq_status_check_current(Status *s);
|
||||||
|
@ -505,7 +505,7 @@ _cpufreq_cb_check(void *data __UNUSED__)
|
||||||
}
|
}
|
||||||
|
|
||||||
static Status *
|
static Status *
|
||||||
_cpufreq_status_new()
|
_cpufreq_status_new(void)
|
||||||
{
|
{
|
||||||
Status *s;
|
Status *s;
|
||||||
|
|
||||||
|
|
|
@ -2817,8 +2817,10 @@ _evry_matches_update(Evry_Selector *sel, int async)
|
||||||
|
|
||||||
EINA_LIST_FOREACH (s->plugins, l, p)
|
EINA_LIST_FOREACH (s->plugins, l, p)
|
||||||
{
|
{
|
||||||
|
size_t len;
|
||||||
|
|
||||||
if (!p->config->trigger) continue;
|
if (!p->config->trigger) continue;
|
||||||
size_t len = strlen(p->config->trigger);
|
len = strlen(p->config->trigger);
|
||||||
|
|
||||||
if (len_trigger && len != len_trigger)
|
if (len_trigger && len != len_trigger)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -201,9 +201,10 @@ evry_plugin_register(Evry_Plugin *p, int type, int priority)
|
||||||
void
|
void
|
||||||
evry_plugin_unregister(Evry_Plugin *p)
|
evry_plugin_unregister(Evry_Plugin *p)
|
||||||
{
|
{
|
||||||
DBG("%s", p->name);
|
|
||||||
Eina_List *l = evry_conf->conf_subjects;
|
Eina_List *l = evry_conf->conf_subjects;
|
||||||
|
|
||||||
|
DBG("%s", p->name);
|
||||||
|
|
||||||
if (l && eina_list_data_find_list(l, p->config))
|
if (l && eina_list_data_find_list(l, p->config))
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
|
@ -166,6 +166,16 @@ _e_fileman_dbus_daemon_request_name_cb(void *data,
|
||||||
static E_Fileman_DBus_Daemon *
|
static E_Fileman_DBus_Daemon *
|
||||||
_e_fileman_dbus_daemon_new(void)
|
_e_fileman_dbus_daemon_new(void)
|
||||||
{
|
{
|
||||||
|
const struct
|
||||||
|
{
|
||||||
|
const char *method;
|
||||||
|
const char *signature;
|
||||||
|
const char *ret_signature;
|
||||||
|
E_DBus_Method_Cb func;
|
||||||
|
} *itr, desc[] = {
|
||||||
|
{"OpenDirectory", "s", "", _e_fileman_dbus_daemon_open_directory_cb},
|
||||||
|
{NULL, NULL, NULL, NULL}
|
||||||
|
};
|
||||||
E_Fileman_DBus_Daemon *d;
|
E_Fileman_DBus_Daemon *d;
|
||||||
|
|
||||||
d = calloc(1, sizeof(*d));
|
d = calloc(1, sizeof(*d));
|
||||||
|
@ -189,17 +199,6 @@ _e_fileman_dbus_daemon_new(void)
|
||||||
if (!d->pending.request_name)
|
if (!d->pending.request_name)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
const struct
|
|
||||||
{
|
|
||||||
const char *method;
|
|
||||||
const char *signature;
|
|
||||||
const char *ret_signature;
|
|
||||||
E_DBus_Method_Cb func;
|
|
||||||
} *itr, desc[] = {
|
|
||||||
{"OpenDirectory", "s", "", _e_fileman_dbus_daemon_open_directory_cb},
|
|
||||||
{NULL, NULL, NULL, NULL}
|
|
||||||
};
|
|
||||||
|
|
||||||
for (itr = desc; itr->method; itr++)
|
for (itr = desc; itr->method; itr++)
|
||||||
e_dbus_interface_method_add
|
e_dbus_interface_method_add
|
||||||
(d->iface, itr->method, itr->signature, itr->ret_signature, itr->func);
|
(d->iface, itr->method, itr->signature, itr->ret_signature, itr->func);
|
||||||
|
|
|
@ -346,6 +346,7 @@ _e_mod_menu_generate(void *data __UNUSED__,
|
||||||
E_Menu_Item *mi;
|
E_Menu_Item *mi;
|
||||||
E_Volume *vol;
|
E_Volume *vol;
|
||||||
const Eina_List *l;
|
const Eina_List *l;
|
||||||
|
Eina_Bool need_separator;
|
||||||
|
|
||||||
/* Home */
|
/* Home */
|
||||||
mi = e_menu_item_new(m);
|
mi = e_menu_item_new(m);
|
||||||
|
@ -377,7 +378,7 @@ _e_mod_menu_generate(void *data __UNUSED__,
|
||||||
e_util_menu_item_theme_icon_set(mi, "computer");
|
e_util_menu_item_theme_icon_set(mi, "computer");
|
||||||
e_menu_item_callback_set(mi, _e_mod_menu_virtual_cb, "/");
|
e_menu_item_callback_set(mi, _e_mod_menu_virtual_cb, "/");
|
||||||
|
|
||||||
Eina_Bool need_separator = 1;
|
need_separator = 1;
|
||||||
|
|
||||||
/* Volumes */
|
/* Volumes */
|
||||||
Eina_Bool volumes_visible = 0;
|
Eina_Bool volumes_visible = 0;
|
||||||
|
|
|
@ -218,7 +218,7 @@ _clear_channels(E_Config_Dialog_Data *cfdata)
|
||||||
static void
|
static void
|
||||||
_fill_channels(Evas *evas, E_Config_Dialog_Data *cfdata)
|
_fill_channels(Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||||
{
|
{
|
||||||
struct mixer_config_ui_channels *ui = &cfdata->ui.channels;;
|
struct mixer_config_ui_channels *ui = &cfdata->ui.channels;
|
||||||
Evas_Object *selected;
|
Evas_Object *selected;
|
||||||
Evas_Coord mw, mh;
|
Evas_Coord mw, mh;
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
|
@ -84,7 +84,7 @@ typedef int (*E_Mixer_Mute_Get_Cb)(E_Mixer_System *, E_Mixer_Channel *, int *);
|
||||||
typedef int (*E_Mixer_Mute_Set_Cb)(E_Mixer_System *, E_Mixer_Channel *, int);
|
typedef int (*E_Mixer_Mute_Set_Cb)(E_Mixer_System *, E_Mixer_Channel *, int);
|
||||||
typedef int (*E_Mixer_State_Get_Cb)(E_Mixer_System *, E_Mixer_Channel *, E_Mixer_Channel_State *);
|
typedef int (*E_Mixer_State_Get_Cb)(E_Mixer_System *, E_Mixer_Channel *, E_Mixer_Channel_State *);
|
||||||
typedef int (*E_Mixer_Capture_Cb)(E_Mixer_System *, E_Mixer_Channel *);
|
typedef int (*E_Mixer_Capture_Cb)(E_Mixer_System *, E_Mixer_Channel *);
|
||||||
typedef void *(*E_Mixer_Cb)();
|
typedef void *(*E_Mixer_Cb)(void);
|
||||||
|
|
||||||
EAPI extern E_Module_Api e_modapi;
|
EAPI extern E_Module_Api e_modapi;
|
||||||
EAPI void *e_modapi_init(E_Module *m);
|
EAPI void *e_modapi_init(E_Module *m);
|
||||||
|
|
|
@ -619,7 +619,7 @@ pulse_new(void)
|
||||||
{
|
{
|
||||||
Pulse *conn;
|
Pulse *conn;
|
||||||
Eina_Iterator *it;
|
Eina_Iterator *it;
|
||||||
const char *prev = NULL, *buf = NULL;;
|
const char *prev = NULL, *buf = NULL;
|
||||||
time_t t = 0;
|
time_t t = 0;
|
||||||
char *home, h[4096];
|
char *home, h[4096];
|
||||||
const Eina_File_Direct_Info *info;
|
const Eina_File_Direct_Info *info;
|
||||||
|
|
|
@ -368,7 +368,7 @@ _notification_popup_place(Popup_Data *popup,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_notification_popups_place()
|
_notification_popups_place(void)
|
||||||
{
|
{
|
||||||
Popup_Data *popup;
|
Popup_Data *popup;
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
|
|
|
@ -158,7 +158,7 @@ static Pager_Popup *_pager_popup_find(E_Zone *zone);
|
||||||
static E_Config_Dialog *_pager_config_dialog(E_Container *con, const char *params);
|
static E_Config_Dialog *_pager_config_dialog(E_Container *con, const char *params);
|
||||||
|
|
||||||
/* functions for pager popup on key actions */
|
/* functions for pager popup on key actions */
|
||||||
static int _pager_popup_show();
|
static int _pager_popup_show(void);
|
||||||
static void _pager_popup_hide(int switch_desk);
|
static void _pager_popup_hide(int switch_desk);
|
||||||
static Eina_Bool _pager_popup_cb_mouse_down(void *data __UNUSED__, int type __UNUSED__, void *event);
|
static Eina_Bool _pager_popup_cb_mouse_down(void *data __UNUSED__, int type __UNUSED__, void *event);
|
||||||
static Eina_Bool _pager_popup_cb_mouse_up(void *data __UNUSED__, int type __UNUSED__, void *event);
|
static Eina_Bool _pager_popup_cb_mouse_up(void *data __UNUSED__, int type __UNUSED__, void *event);
|
||||||
|
@ -2317,7 +2317,7 @@ _pager_popup_cb_timeout(void *data)
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/* popup-on-keyaction functions */
|
/* popup-on-keyaction functions */
|
||||||
static int
|
static int
|
||||||
_pager_popup_show()
|
_pager_popup_show(void)
|
||||||
{
|
{
|
||||||
E_Zone *zone;
|
E_Zone *zone;
|
||||||
int x, y, w, h;
|
int x, y, w, h;
|
||||||
|
|
Loading…
Reference in New Issue