summaryrefslogtreecommitdiff
path: root/src/modules/conf_keybindings/e_int_config_acpibindings.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-08 09:48:19 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-06-08 09:48:19 +0000
commit4c5e4226a2c2924af15954c61bfcde5496b31aaa (patch)
tree4f373cdd15147bf5d86c61bbfc8247d6425b157d /src/modules/conf_keybindings/e_int_config_acpibindings.c
parent0d4c7b2741c57e4eccaed783622fbe4808395bec (diff)
fix formatting for conf_keybindings
SVN revision: 71840
Diffstat (limited to 'src/modules/conf_keybindings/e_int_config_acpibindings.c')
-rw-r--r--src/modules/conf_keybindings/e_int_config_acpibindings.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/modules/conf_keybindings/e_int_config_acpibindings.c b/src/modules/conf_keybindings/e_int_config_acpibindings.c
index ba6ab9089..ad064a0c4 100644
--- a/src/modules/conf_keybindings/e_int_config_acpibindings.c
+++ b/src/modules/conf_keybindings/e_int_config_acpibindings.c
@@ -9,24 +9,24 @@
9/* local config structure */ 9/* local config structure */
10struct _E_Config_Dialog_Data 10struct _E_Config_Dialog_Data
11{ 11{
12 Eina_List *bindings; 12 Eina_List *bindings;
13 Evas_Object *o_bindings, *o_actions, *o_params; 13 Evas_Object *o_bindings, *o_actions, *o_params;
14 Evas_Object *o_add, *o_del; 14 Evas_Object *o_add, *o_del;
15 const char *bindex; 15 const char *bindex;
16 16
17 E_Config_Dialog *cfd; 17 E_Config_Dialog *cfd;
18}; 18};
19 19
20/* local function prototypes */ 20/* local function prototypes */
21static void *_create_data(E_Config_Dialog *cfd); 21static void *_create_data(E_Config_Dialog *cfd);
22static void _fill_data(E_Config_Dialog_Data *cfdata); 22static void _fill_data(E_Config_Dialog_Data *cfdata);
23static void _free_data(E_Config_Dialog *cfd __UNUSED__, 23static void _free_data(E_Config_Dialog *cfd __UNUSED__,
24 E_Config_Dialog_Data *cfdata); 24 E_Config_Dialog_Data *cfdata);
25static int _basic_apply(E_Config_Dialog *cfd __UNUSED__, 25static int _basic_apply(E_Config_Dialog *cfd __UNUSED__,
26 E_Config_Dialog_Data *cfdata); 26 E_Config_Dialog_Data *cfdata);
27static Evas_Object *_basic_create(E_Config_Dialog *cfd, 27static Evas_Object *_basic_create(E_Config_Dialog *cfd,
28 Evas *evas, 28 Evas *evas,
29 E_Config_Dialog_Data *cfdata); 29 E_Config_Dialog_Data *cfdata);
30static void _fill_bindings(E_Config_Dialog_Data *cfdata); 30static void _fill_bindings(E_Config_Dialog_Data *cfdata);
31static void _fill_actions(E_Config_Dialog_Data *cfdata); 31static void _fill_actions(E_Config_Dialog_Data *cfdata);
32static E_Config_Binding_Acpi *_selected_binding_get(E_Config_Dialog_Data *cfdata); 32static E_Config_Binding_Acpi *_selected_binding_get(E_Config_Dialog_Data *cfdata);
@@ -34,18 +34,18 @@ static E_Action_Description *_selected_action_get(E_Config_Dialog_Data *cfdata)
34static const char *_binding_label_get(E_Config_Binding_Acpi *bind); 34static const char *_binding_label_get(E_Config_Binding_Acpi *bind);
35static void _cb_bindings_changed(void *data); 35static void _cb_bindings_changed(void *data);
36static void _cb_actions_changed(void *data); 36static void _cb_actions_changed(void *data);
37static void _cb_entry_changed(void *data, 37static void _cb_entry_changed(void *data,
38 void *data2 __UNUSED__); 38 void *data2 __UNUSED__);
39static void _cb_add_binding(void *data, 39static void _cb_add_binding(void *data,
40 void *data2 __UNUSED__); 40 void *data2 __UNUSED__);
41static void _cb_del_binding(void *data, 41static void _cb_del_binding(void *data,
42 void *data2 __UNUSED__); 42 void *data2 __UNUSED__);
43static Eina_Bool _cb_grab_key_down(void *data, 43static Eina_Bool _cb_grab_key_down(void *data,
44 int type __UNUSED__, 44 int type __UNUSED__,
45 void *event); 45 void *event);
46static Eina_Bool _cb_acpi_event(void *data, 46static Eina_Bool _cb_acpi_event(void *data,
47 int type, 47 int type,
48 void *event); 48 void *event);
49 49
50/* local variables */ 50/* local variables */
51static E_Dialog *grab_dlg = NULL; 51static E_Dialog *grab_dlg = NULL;
@@ -53,7 +53,7 @@ static Ecore_X_Window grab_win = 0;
53static Eina_List *grab_hdls = NULL; 53static Eina_List *grab_hdls = NULL;
54 54
55E_Config_Dialog * 55E_Config_Dialog *
56e_int_config_acpibindings(E_Container *con, 56e_int_config_acpibindings(E_Container *con,
57 const char *params __UNUSED__) 57 const char *params __UNUSED__)
58{ 58{
59 E_Config_Dialog *cfd; 59 E_Config_Dialog *cfd;
@@ -179,8 +179,8 @@ _basic_apply(E_Config_Dialog *cfd __UNUSED__,
179} 179}
180 180
181static Evas_Object * 181static Evas_Object *
182_basic_create(E_Config_Dialog *cfd, 182_basic_create(E_Config_Dialog *cfd,
183 Evas *evas, 183 Evas *evas,
184 E_Config_Dialog_Data *cfdata) 184 E_Config_Dialog_Data *cfdata)
185{ 185{
186 Evas_Object *ol, *of, *ow, *ot; 186 Evas_Object *ol, *of, *ow, *ot;
@@ -250,7 +250,7 @@ _fill_bindings(E_Config_Dialog_Data *cfdata)
250 lbl = _binding_label_get(binding); 250 lbl = _binding_label_get(binding);
251 251
252 e_widget_ilist_append(cfdata->o_bindings, NULL, lbl, 252 e_widget_ilist_append(cfdata->o_bindings, NULL, lbl,
253 _cb_bindings_changed, cfdata, buff); 253 _cb_bindings_changed, cfdata, buff);
254 } 254 }
255 255
256 e_widget_ilist_go(cfdata->o_bindings); 256 e_widget_ilist_go(cfdata->o_bindings);
@@ -332,7 +332,7 @@ _selected_action_get(E_Config_Dialog_Data *cfdata)
332// (strcmp(grp->act_grp, "Launch"))) continue; 332// (strcmp(grp->act_grp, "Launch"))) continue;
333 EINA_LIST_FOREACH(grp->acts, ll, dsc) 333 EINA_LIST_FOREACH(grp->acts, ll, dsc)
334 { 334 {
335 if ((dsc->act_name) && (!strcmp(dsc->act_name, lbl))) 335 if ((dsc->act_name) && (!strcmp(dsc->act_name, lbl)))
336 return dsc; 336 return dsc;
337 } 337 }
338 } 338 }
@@ -466,7 +466,7 @@ _cb_actions_changed(void *data)
466} 466}
467 467
468static void 468static void
469_cb_entry_changed(void *data, 469_cb_entry_changed(void *data,
470 void *data2 __UNUSED__) 470 void *data2 __UNUSED__)
471{ 471{
472 E_Config_Dialog_Data *cfdata; 472 E_Config_Dialog_Data *cfdata;
@@ -482,7 +482,7 @@ _cb_entry_changed(void *data,
482} 482}
483 483
484static void 484static void
485_cb_add_binding(void *data, 485_cb_add_binding(void *data,
486 void *data2 __UNUSED__) 486 void *data2 __UNUSED__)
487{ 487{
488 E_Config_Dialog_Data *cfdata; 488 E_Config_Dialog_Data *cfdata;
@@ -524,7 +524,7 @@ _cb_add_binding(void *data,
524} 524}
525 525
526static void 526static void
527_cb_del_binding(void *data, 527_cb_del_binding(void *data,
528 void *data2 __UNUSED__) 528 void *data2 __UNUSED__)
529{ 529{
530 E_Config_Dialog_Data *cfdata; 530 E_Config_Dialog_Data *cfdata;
@@ -587,9 +587,9 @@ _cb_del_binding(void *data,
587} 587}
588 588
589static Eina_Bool 589static Eina_Bool
590_cb_grab_key_down(void *data, 590_cb_grab_key_down(void *data,
591 int type __UNUSED__, 591 int type __UNUSED__,
592 void *event) 592 void *event)
593{ 593{
594 E_Config_Dialog_Data *cfdata; 594 E_Config_Dialog_Data *cfdata;
595 Ecore_Event_Key *ev; 595 Ecore_Event_Key *ev;
@@ -619,9 +619,9 @@ _cb_grab_key_down(void *data,
619} 619}
620 620
621static Eina_Bool 621static Eina_Bool
622_cb_acpi_event(void *data, 622_cb_acpi_event(void *data,
623 __UNUSED__ int type, 623 __UNUSED__ int type,
624 void *event) 624 void *event)
625{ 625{
626 E_Event_Acpi *ev; 626 E_Event_Acpi *ev;
627 E_Config_Dialog_Data *cfdata; 627 E_Config_Dialog_Data *cfdata;