forked from enlightenment/enlightenment
formatting. I'm going to catch whoever this is and beat them.
SVN revision: 55729
This commit is contained in:
parent
2e4b8b9901
commit
5020fd62b0
|
@ -20,9 +20,13 @@ struct _E_Config_Dialog_Data
|
|||
/* local function prototypes */
|
||||
static void *_create_data(E_Config_Dialog *cfd);
|
||||
static void _fill_data(E_Config_Dialog_Data *cfdata);
|
||||
static void _free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata);
|
||||
static int _basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata);
|
||||
static Evas_Object *_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata);
|
||||
static void _free_data(E_Config_Dialog *cfd __UNUSED__,
|
||||
E_Config_Dialog_Data *cfdata);
|
||||
static int _basic_apply(E_Config_Dialog *cfd __UNUSED__,
|
||||
E_Config_Dialog_Data *cfdata);
|
||||
static Evas_Object *_basic_create(E_Config_Dialog *cfd,
|
||||
Evas *evas,
|
||||
E_Config_Dialog_Data *cfdata);
|
||||
static void _fill_bindings(E_Config_Dialog_Data *cfdata);
|
||||
static void _fill_actions(E_Config_Dialog_Data *cfdata);
|
||||
static E_Config_Binding_Acpi *_selected_binding_get(E_Config_Dialog_Data *cfdata);
|
||||
|
@ -30,11 +34,18 @@ static E_Action_Description *_selected_action_get(E_Config_Dialog_Data *cfdata);
|
|||
static const char *_binding_label_get(E_Config_Binding_Acpi *bind);
|
||||
static void _cb_bindings_changed(void *data);
|
||||
static void _cb_actions_changed(void *data);
|
||||
static void _cb_entry_changed(void *data, void *data2 __UNUSED__);
|
||||
static void _cb_add_binding(void *data, void *data2 __UNUSED__);
|
||||
static void _cb_del_binding(void *data, void *data2 __UNUSED__);
|
||||
static Eina_Bool _cb_grab_key_down(void *data, int type __UNUSED__, void *event);
|
||||
static Eina_Bool _cb_acpi_event(void *data, int type, void *event);
|
||||
static void _cb_entry_changed(void *data,
|
||||
void *data2 __UNUSED__);
|
||||
static void _cb_add_binding(void *data,
|
||||
void *data2 __UNUSED__);
|
||||
static void _cb_del_binding(void *data,
|
||||
void *data2 __UNUSED__);
|
||||
static Eina_Bool _cb_grab_key_down(void *data,
|
||||
int type __UNUSED__,
|
||||
void *event);
|
||||
static Eina_Bool _cb_acpi_event(void *data,
|
||||
int type,
|
||||
void *event);
|
||||
|
||||
/* local variables */
|
||||
static E_Dialog *grab_dlg = NULL;
|
||||
|
@ -42,7 +53,8 @@ static Ecore_X_Window grab_win = 0;
|
|||
static Eina_List *grab_hdls = NULL;
|
||||
|
||||
E_Config_Dialog *
|
||||
e_int_config_acpibindings(E_Container *con, const char *params __UNUSED__)
|
||||
e_int_config_acpibindings(E_Container *con,
|
||||
const char *params __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog *cfd;
|
||||
E_Config_Dialog_View *v;
|
||||
|
@ -97,7 +109,8 @@ _fill_data(E_Config_Dialog_Data *cfdata)
|
|||
}
|
||||
|
||||
static void
|
||||
_free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||
_free_data(E_Config_Dialog *cfd __UNUSED__,
|
||||
E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
E_Config_Binding_Acpi *bind;
|
||||
Ecore_Event_Handler *hdl;
|
||||
|
@ -131,7 +144,8 @@ _free_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
|||
}
|
||||
|
||||
static int
|
||||
_basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||
_basic_apply(E_Config_Dialog *cfd __UNUSED__,
|
||||
E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
E_Config_Binding_Acpi *bind, *b2;
|
||||
Eina_List *l;
|
||||
|
@ -165,7 +179,9 @@ _basic_apply(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
|||
}
|
||||
|
||||
static Evas_Object *
|
||||
_basic_create(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cfdata)
|
||||
_basic_create(E_Config_Dialog *cfd,
|
||||
Evas *evas,
|
||||
E_Config_Dialog_Data *cfdata)
|
||||
{
|
||||
Evas_Object *ol, *of, *ow, *ot;
|
||||
|
||||
|
@ -332,23 +348,34 @@ _binding_label_get(E_Config_Binding_Acpi *bind)
|
|||
{
|
||||
ret = _("Ac Adapter");
|
||||
if (bind->status == 0) ret = _("AC Adapter Unplugged");
|
||||
else if (bind->status == 1) ret = _("AC Adapter Plugged");
|
||||
else if (bind->status == 1)
|
||||
ret = _("AC Adapter Plugged");
|
||||
}
|
||||
else if (bind->type == E_ACPI_TYPE_BATTERY) ret = _("Battery");
|
||||
else if (bind->type == E_ACPI_TYPE_BUTTON) ret = _("Button");
|
||||
else if (bind->type == E_ACPI_TYPE_FAN) ret = _("Fan");
|
||||
else if (bind->type == E_ACPI_TYPE_BATTERY)
|
||||
ret = _("Battery");
|
||||
else if (bind->type == E_ACPI_TYPE_BUTTON)
|
||||
ret = _("Button");
|
||||
else if (bind->type == E_ACPI_TYPE_FAN)
|
||||
ret = _("Fan");
|
||||
else if (bind->type == E_ACPI_TYPE_LID)
|
||||
{
|
||||
ret = _("Lid");
|
||||
if (bind->status == 0) ret = _("Lid Closed");
|
||||
else if (bind->status == 1) ret = _("Lid Opened");
|
||||
else if (bind->status == 1)
|
||||
ret = _("Lid Opened");
|
||||
}
|
||||
else if (bind->type == E_ACPI_TYPE_POWER) ret = _("Power Button");
|
||||
else if (bind->type == E_ACPI_TYPE_PROCESSOR) ret = _("Processor");
|
||||
else if (bind->type == E_ACPI_TYPE_SLEEP) ret = _("Sleep Button");
|
||||
else if (bind->type == E_ACPI_TYPE_THERMAL) ret = _("Thermal");
|
||||
else if (bind->type == E_ACPI_TYPE_VIDEO) ret = _("Video");
|
||||
else if (bind->type == E_ACPI_TYPE_WIFI) ret = _("Wifi");
|
||||
else if (bind->type == E_ACPI_TYPE_POWER)
|
||||
ret = _("Power Button");
|
||||
else if (bind->type == E_ACPI_TYPE_PROCESSOR)
|
||||
ret = _("Processor");
|
||||
else if (bind->type == E_ACPI_TYPE_SLEEP)
|
||||
ret = _("Sleep Button");
|
||||
else if (bind->type == E_ACPI_TYPE_THERMAL)
|
||||
ret = _("Thermal");
|
||||
else if (bind->type == E_ACPI_TYPE_VIDEO)
|
||||
ret = _("Video");
|
||||
else if (bind->type == E_ACPI_TYPE_WIFI)
|
||||
ret = _("Wifi");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -425,7 +452,8 @@ _cb_actions_changed(void *data)
|
|||
}
|
||||
|
||||
static void
|
||||
_cb_entry_changed(void *data, void *data2 __UNUSED__)
|
||||
_cb_entry_changed(void *data,
|
||||
void *data2 __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata;
|
||||
E_Config_Binding_Acpi *bind;
|
||||
|
@ -440,7 +468,8 @@ _cb_entry_changed(void *data, void *data2 __UNUSED__)
|
|||
}
|
||||
|
||||
static void
|
||||
_cb_add_binding(void *data, void *data2 __UNUSED__)
|
||||
_cb_add_binding(void *data,
|
||||
void *data2 __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata;
|
||||
E_Manager *man;
|
||||
|
@ -509,7 +538,8 @@ _cb_add_binding(void *data, void *data2 __UNUSED__)
|
|||
}
|
||||
|
||||
static void
|
||||
_cb_del_binding(void *data, void *data2 __UNUSED__)
|
||||
_cb_del_binding(void *data,
|
||||
void *data2 __UNUSED__)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata;
|
||||
E_Config_Binding_Acpi *bind, *bind2;
|
||||
|
@ -571,7 +601,9 @@ _cb_del_binding(void *data, void *data2 __UNUSED__)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_cb_grab_key_down(void *data, int type __UNUSED__, void *event)
|
||||
_cb_grab_key_down(void *data,
|
||||
int type __UNUSED__,
|
||||
void *event)
|
||||
{
|
||||
E_Config_Dialog_Data *cfdata;
|
||||
Ecore_Event_Key *ev;
|
||||
|
@ -601,7 +633,9 @@ _cb_grab_key_down(void *data, int type __UNUSED__, void *event)
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_cb_acpi_event(void *data, __UNUSED__ int type, void *event)
|
||||
_cb_acpi_event(void *data,
|
||||
__UNUSED__ int type,
|
||||
void *event)
|
||||
{
|
||||
E_Event_Acpi *ev;
|
||||
E_Config_Dialog_Data *cfdata;
|
||||
|
@ -639,3 +673,4 @@ _cb_acpi_event(void *data, __UNUSED__ int type, void *event)
|
|||
_fill_bindings(cfdata);
|
||||
return ECORE_CALLBACK_DONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue