summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2005-12-24 20:01:03 +0000
committerChristopher Michael <cpmichael1@comcast.net>2005-12-24 20:01:03 +0000
commit0affc3ee5cfbb9a8cc7bb91f3a72b025394e132e (patch)
treeefb8a5b50226da117a1f520a06dc028d3538ef11
parentc1da03d53e7effcadc5ba8f8f6e9fefc9d333ad2 (diff)
Remove unused protos. Cleanups
SVN revision: 19287
-rw-r--r--src/modules/battery/e_mod_config.c3
-rw-r--r--src/modules/battery/e_mod_main.c28
-rw-r--r--src/modules/cpufreq/e_mod_main.c29
-rw-r--r--src/modules/ibox/e_mod_config.c2
-rw-r--r--src/modules/ibox/e_mod_main.c29
-rw-r--r--src/modules/pager/e_mod_config.c3
-rw-r--r--src/modules/pager/e_mod_main.c23
-rw-r--r--src/modules/start/e_mod_main.c10
-rw-r--r--src/modules/temperature/e_mod_config.c1
-rw-r--r--src/modules/temperature/e_mod_main.c28
10 files changed, 4 insertions, 152 deletions
diff --git a/src/modules/battery/e_mod_config.c b/src/modules/battery/e_mod_config.c
index 78b4666eb..b594b8df8 100644
--- a/src/modules/battery/e_mod_config.c
+++ b/src/modules/battery/e_mod_config.c
@@ -19,7 +19,6 @@ struct _Cfg_File_Data
19}; 19};
20 20
21/* Protos */ 21/* Protos */
22static Evas_Object *_create_widgets(E_Config_Dialog *cfd, Evas *evas, Config *cfdata);
23static void *_create_data(E_Config_Dialog *cfd); 22static void *_create_data(E_Config_Dialog *cfd);
24static void _free_data(E_Config_Dialog *cfd, CFData *cfdata); 23static void _free_data(E_Config_Dialog *cfd, CFData *cfdata);
25static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata); 24static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata);
@@ -111,7 +110,7 @@ _basic_apply_data(E_Config_Dialog *cfd, CFData *cfdata)
111static Evas_Object 110static Evas_Object
112*_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata) 111*_advanced_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata)
113{ 112{
114 Evas_Object *o, *of, *ob, *ot; 113 Evas_Object *o, *of, *ob;
115 Battery *b; 114 Battery *b;
116 115
117 /* Use Sliders for both cfg options */ 116 /* Use Sliders for both cfg options */
diff --git a/src/modules/battery/e_mod_main.c b/src/modules/battery/e_mod_main.c
index 5380b0fc5..b94e160a1 100644
--- a/src/modules/battery/e_mod_main.c
+++ b/src/modules/battery/e_mod_main.c
@@ -57,7 +57,6 @@ static void _battery_face_disable(Battery_Face *face);
57static void _battery_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change); 57static void _battery_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change);
58static void _battery_face_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info); 58static void _battery_face_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
59static void _battery_face_level_set(Battery_Face *ef, double level); 59static void _battery_face_level_set(Battery_Face *ef, double level);
60static void _battery_face_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi);
61static void _battery_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi); 60static void _battery_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi);
62 61
63static int _battery_int_get(char *buf); 62static int _battery_int_get(char *buf);
@@ -355,15 +354,6 @@ _battery_face_menu_new(Battery_Face *face)
355 mn = e_menu_new(); 354 mn = e_menu_new();
356 face->menu = mn; 355 face->menu = mn;
357 356
358 /* Enabled */
359 /*
360 mi = e_menu_item_new(mn);
361 e_menu_item_label_set(mi, _("Enabled"));
362 e_menu_item_check_set(mi, 1);
363 if (face->conf->enabled) e_menu_item_toggle_set(mi, 1);
364 e_menu_item_callback_set(mi, _battery_face_cb_menu_enabled, face);
365 */
366
367 /* Config */ 357 /* Config */
368 mi = e_menu_item_new(mn); 358 mi = e_menu_item_new(mn);
369 e_menu_item_label_set(mi, _("Configuration")); 359 e_menu_item_label_set(mi, _("Configuration"));
@@ -1519,24 +1509,6 @@ _battery_face_level_set(Battery_Face *ef, double level)
1519} 1509}
1520 1510
1521static void 1511static void
1522_battery_face_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi)
1523{
1524 Battery_Face *face;
1525 unsigned char enabled;
1526
1527 face = data;
1528 enabled = e_menu_item_toggle_get(mi);
1529 if ((face->conf->enabled) && (!enabled))
1530 {
1531 _battery_face_disable(face);
1532 }
1533 else if ((!face->conf->enabled) && (enabled))
1534 {
1535 _battery_face_enable(face);
1536 }
1537}
1538
1539static void
1540_battery_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi) 1512_battery_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi)
1541{ 1513{
1542 Battery_Face *face; 1514 Battery_Face *face;
diff --git a/src/modules/cpufreq/e_mod_main.c b/src/modules/cpufreq/e_mod_main.c
index 828d4313f..7a6a2f523 100644
--- a/src/modules/cpufreq/e_mod_main.c
+++ b/src/modules/cpufreq/e_mod_main.c
@@ -43,7 +43,6 @@ static void _cpufreq_face_menu_new(Cpufreq_Face *face);
43static void _cpufreq_face_enable(Cpufreq_Face *face); 43static void _cpufreq_face_enable(Cpufreq_Face *face);
44static void _cpufreq_face_disable(Cpufreq_Face *face); 44static void _cpufreq_face_disable(Cpufreq_Face *face);
45static void _cpufreq_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change); 45static void _cpufreq_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change);
46static void _cpufreq_face_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi);
47static void _cpufreq_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi); 46static void _cpufreq_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi);
48static void _cpufreq_face_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info); 47static void _cpufreq_face_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
49static void _cpufreq_face_update_available(Cpufreq_Face *face); 48static void _cpufreq_face_update_available(Cpufreq_Face *face);
@@ -932,15 +931,7 @@ _cpufreq_face_menu_new(Cpufreq_Face *face)
932 931
933 mn = e_menu_new(); 932 mn = e_menu_new();
934 face->menu = mn; 933 face->menu = mn;
935 934
936 /* Enabled */
937 /*mi = e_menu_item_new(mn);
938 e_menu_item_label_set(mi, "Enabled");
939 e_menu_item_check_set(mi, 1);
940 if (face->conf->enabled) e_menu_item_toggle_set(mi, 1);
941 e_menu_item_callback_set(mi, _cpufreq_face_cb_menu_enabled, face);
942 */
943
944 /* Edit */ 935 /* Edit */
945 mi = e_menu_item_new(mn); 936 mi = e_menu_item_new(mn);
946 e_menu_item_label_set(mi, _("Edit Mode")); 937 e_menu_item_label_set(mi, _("Edit Mode"));
@@ -992,24 +983,6 @@ _cpufreq_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change ch
992} 983}
993 984
994static void 985static void
995_cpufreq_face_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi)
996{
997 Cpufreq_Face *face;
998 unsigned char enabled;
999
1000 face = data;
1001 enabled = e_menu_item_toggle_get(mi);
1002 if ((face->conf->enabled) && (!enabled))
1003 {
1004 _cpufreq_face_disable(face);
1005 }
1006 else if ((!face->conf->enabled) && (enabled))
1007 {
1008 _cpufreq_face_enable(face);
1009 }
1010}
1011
1012static void
1013_cpufreq_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi) 986_cpufreq_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi)
1014{ 987{
1015 Cpufreq_Face *face; 988 Cpufreq_Face *face;
diff --git a/src/modules/ibox/e_mod_config.c b/src/modules/ibox/e_mod_config.c
index 5ee337379..d80a5d0ed 100644
--- a/src/modules/ibox/e_mod_config.c
+++ b/src/modules/ibox/e_mod_config.c
@@ -21,7 +21,6 @@ struct _Cfg_File_Data
21}; 21};
22 22
23/* Protos */ 23/* Protos */
24static Evas_Object *_create_widgets(E_Config_Dialog *cfd, Evas *evas, Config *cfdata);
25static void *_create_data(E_Config_Dialog *cfd); 24static void *_create_data(E_Config_Dialog *cfd);
26static void _free_data(E_Config_Dialog *cfd, CFData *cfdata); 25static void _free_data(E_Config_Dialog *cfd, CFData *cfdata);
27static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata); 26static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata);
@@ -96,7 +95,6 @@ static int
96_basic_apply_data(E_Config_Dialog *cfd, CFData *cfdata) 95_basic_apply_data(E_Config_Dialog *cfd, CFData *cfdata)
97{ 96{
98 IBox *ib; 97 IBox *ib;
99 Evas_List *l;
100 98
101 ib = cfd->data; 99 ib = cfd->data;
102 e_border_button_bindings_ungrab_all(); 100 e_border_button_bindings_ungrab_all();
diff --git a/src/modules/ibox/e_mod_main.c b/src/modules/ibox/e_mod_main.c
index e9f128082..87a8e9d0f 100644
--- a/src/modules/ibox/e_mod_main.c
+++ b/src/modules/ibox/e_mod_main.c
@@ -76,7 +76,6 @@ static void _ibox_icon_cb_mouse_in(void *data, Evas *e, Evas_Object *obj, voi
76static void _ibox_icon_cb_mouse_out(void *data, Evas *e, Evas_Object *obj, void *event_info); 76static void _ibox_icon_cb_mouse_out(void *data, Evas *e, Evas_Object *obj, void *event_info);
77static void _ibox_icon_cb_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info); 77static void _ibox_icon_cb_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info);
78 78
79static void _ibox_box_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi);
80static void _ibox_box_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi); 79static void _ibox_box_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi);
81static void _ibox_box_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi); 80static void _ibox_box_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi);
82 81
@@ -445,15 +444,6 @@ _ibox_box_menu_new(IBox_Box *ibb)
445 mn = e_menu_new(); 444 mn = e_menu_new();
446 ibb->menu = mn; 445 ibb->menu = mn;
447 446
448 /* Enabled */
449 /*
450 mi = e_menu_item_new(mn);
451 e_menu_item_label_set(mi, "Enabled");
452 e_menu_item_check_set(mi, 1);
453 if (ibb->conf->enabled) e_menu_item_toggle_set(mi, 1);
454 e_menu_item_callback_set(mi, _ibox_box_cb_menu_enabled, ibb);
455 */
456
457 /* Config */ 447 /* Config */
458 mi = e_menu_item_new(mn); 448 mi = e_menu_item_new(mn);
459 e_menu_item_label_set(mi, _("Configuration")); 449 e_menu_item_label_set(mi, _("Configuration"));
@@ -469,7 +459,6 @@ static void
469_ibox_box_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi) 459_ibox_box_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi)
470{ 460{
471 IBox_Box *ibb; 461 IBox_Box *ibb;
472 E_Config_Dialog *cfd;
473 462
474 ibb = (IBox_Box *)data; 463 ibb = (IBox_Box *)data;
475 if (!ibb) return; 464 if (!ibb) return;
@@ -1222,24 +1211,6 @@ _ibox_box_cb_iconsize_change(void *data)
1222} 1211}
1223 1212
1224static void 1213static void
1225_ibox_box_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi)
1226{
1227 IBox_Box *ibb;
1228 unsigned char enabled;
1229
1230 ibb = data;
1231 enabled = e_menu_item_toggle_get(mi);
1232 if ((ibb->conf->enabled) && (!enabled))
1233 {
1234 _ibox_box_disable(ibb);
1235 }
1236 else if ((!ibb->conf->enabled) && (enabled))
1237 {
1238 _ibox_box_enable(ibb);
1239 }
1240}
1241
1242static void
1243_ibox_box_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi) 1214_ibox_box_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi)
1244{ 1215{
1245 IBox_Box *ibb; 1216 IBox_Box *ibb;
diff --git a/src/modules/pager/e_mod_config.c b/src/modules/pager/e_mod_config.c
index 7546cebd6..b9000f0d7 100644
--- a/src/modules/pager/e_mod_config.c
+++ b/src/modules/pager/e_mod_config.c
@@ -20,7 +20,6 @@ struct _Cfg_File_Data
20}; 20};
21 21
22/* Protos */ 22/* Protos */
23static Evas_Object *_create_widgets(E_Config_Dialog *cfd, Evas *evas, Config *cfdata);
24static void *_create_data(E_Config_Dialog *cfd); 23static void *_create_data(E_Config_Dialog *cfd);
25static void _free_data(E_Config_Dialog *cfd, CFData *cfdata); 24static void _free_data(E_Config_Dialog *cfd, CFData *cfdata);
26static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata); 25static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata);
@@ -130,6 +129,7 @@ _basic_apply_data(E_Config_Dialog *cfd, CFData *cfdata)
130 e_config_save_queue(); 129 e_config_save_queue();
131 130
132 _pager_cb_config_updated(p); 131 _pager_cb_config_updated(p);
132 return 1;
133} 133}
134 134
135static Evas_Object 135static Evas_Object
@@ -191,4 +191,5 @@ _advanced_apply_data(E_Config_Dialog *cfd, CFData *cfdata)
191 e_config_save_queue(); 191 e_config_save_queue();
192 192
193 _pager_cb_config_updated(p); 193 _pager_cb_config_updated(p);
194 return 1;
194} 195}
diff --git a/src/modules/pager/e_mod_main.c b/src/modules/pager/e_mod_main.c
index 132f3bebe..ff66ec00a 100644
--- a/src/modules/pager/e_mod_main.c
+++ b/src/modules/pager/e_mod_main.c
@@ -54,7 +54,6 @@ static int _pager_cb_event_desk_show(void *data, int type, void *event);
54static int _pager_cb_event_desk_name_change(void *data, int type, void *event); 54static int _pager_cb_event_desk_name_change(void *data, int type, void *event);
55 55
56static void _pager_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change); 56static void _pager_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change);
57static void _pager_face_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi);
58static void _pager_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi); 57static void _pager_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi);
59 58
60static void _pager_desk_cb_mouse_in(void *data, Evas *e, Evas_Object *obj, void *event_info); 59static void _pager_desk_cb_mouse_in(void *data, Evas *e, Evas_Object *obj, void *event_info);
@@ -510,14 +509,6 @@ _pager_face_menu_new(Pager_Face *face)
510 mn = e_menu_new(); 509 mn = e_menu_new();
511 face->menu = mn; 510 face->menu = mn;
512 511
513 /*
514 mi = e_menu_item_new(mn);
515 e_menu_item_label_set(mi, "Enabled");
516 e_menu_item_check_set(mi, 1);
517 if (face->conf->enabled) e_menu_item_toggle_set(mi, 1);
518 e_menu_item_callback_set(mi, _pager_face_cb_menu_enabled, face);
519 */
520
521 /* Config */ 512 /* Config */
522 mi = e_menu_item_new(mn); 513 mi = e_menu_item_new(mn);
523 e_menu_item_label_set(mi, _("Configuration")); 514 e_menu_item_label_set(mi, _("Configuration"));
@@ -1627,20 +1618,6 @@ _pager_cb_event_desk_name_change(void *data, int type, void *event)
1627} 1618}
1628 1619
1629static void 1620static void
1630_pager_face_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi)
1631{
1632 Pager_Face *face;
1633 unsigned char enabled;
1634
1635 face = data;
1636 enabled = e_menu_item_toggle_get(mi);
1637 if ((face->conf->enabled) && (!enabled))
1638 _pager_face_disable(face);
1639 else if ((!face->conf->enabled) && (enabled))
1640 _pager_face_enable(face);
1641}
1642
1643static void
1644_pager_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi) 1621_pager_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi)
1645{ 1622{
1646 Pager_Face *face; 1623 Pager_Face *face;
diff --git a/src/modules/start/e_mod_main.c b/src/modules/start/e_mod_main.c
index cdadccfff..8ce8b2ca0 100644
--- a/src/modules/start/e_mod_main.c
+++ b/src/modules/start/e_mod_main.c
@@ -9,7 +9,6 @@ static Start *_start_new(void);
9static Start_Face *_start_face_new(E_Container *con); 9static Start_Face *_start_face_new(E_Container *con);
10static void _start_free(Start *e); 10static void _start_free(Start *e);
11static void _start_face_free(Start_Face *face); 11static void _start_face_free(Start_Face *face);
12static void _start_face_enable(Start_Face *e);
13static void _start_face_disable(Start_Face *e); 12static void _start_face_disable(Start_Face *e);
14static void _start_config_menu_new(Start *e); 13static void _start_config_menu_new(Start *e);
15static void _start_face_menu_new(Start_Face *face); 14static void _start_face_menu_new(Start_Face *face);
@@ -282,15 +281,6 @@ _start_face_disable(Start_Face *e)
282} 281}
283 282
284static void 283static void
285_start_face_enable(Start_Face *e)
286{
287 e->conf->enabled = 1;
288 evas_object_show(e->button_object);
289 evas_object_show(e->event_object);
290 e_config_save_queue();
291}
292
293static void
294_start_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change) 284_start_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change)
295{ 285{
296 Start_Face *e; 286 Start_Face *e;
diff --git a/src/modules/temperature/e_mod_config.c b/src/modules/temperature/e_mod_config.c
index 8aacdcaca..74b18491d 100644
--- a/src/modules/temperature/e_mod_config.c
+++ b/src/modules/temperature/e_mod_config.c
@@ -42,7 +42,6 @@ struct _Cfg_File_Data
42}; 42};
43 43
44/* Protos */ 44/* Protos */
45static Evas_Object *_create_widgets(E_Config_Dialog *cfd, Evas *evas, Config *cfdata);
46static void *_create_data(E_Config_Dialog *cfd); 45static void *_create_data(E_Config_Dialog *cfd);
47static void _free_data(E_Config_Dialog *cfd, CFData *cfdata); 46static void _free_data(E_Config_Dialog *cfd, CFData *cfdata);
48static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata); 47static Evas_Object *_basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, CFData *cfdata);
diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c
index 0dc90a1a8..d58f3f9e5 100644
--- a/src/modules/temperature/e_mod_main.c
+++ b/src/modules/temperature/e_mod_main.c
@@ -30,7 +30,6 @@ static void _temperature_face_menu_new(Temperature_Face *face);
30static void _temperature_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change); 30static void _temperature_face_cb_gmc_change(void *data, E_Gadman_Client *gmc, E_Gadman_Change change);
31static void _temperature_face_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info); 31static void _temperature_face_cb_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info);
32static void _temperature_face_level_set(Temperature_Face *ef, double level); 32static void _temperature_face_level_set(Temperature_Face *ef, double level);
33static void _temperature_face_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi);
34static void _temperature_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi); 33static void _temperature_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi);
35static void _temperature_face_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi); 34static void _temperature_face_cb_menu_configure(void *data, E_Menu *m, E_Menu_Item *mi);
36 35
@@ -343,15 +342,6 @@ _temperature_face_menu_new(Temperature_Face *face)
343 342
344 mn = e_menu_new(); 343 mn = e_menu_new();
345 face->menu = mn; 344 face->menu = mn;
346
347 /* Enabled */
348 /*
349 mi = e_menu_item_new(mn);
350 e_menu_item_label_set(mi, _("Enabled"));
351 e_menu_item_check_set(mi, 1);
352 if (face->conf->enabled) e_menu_item_toggle_set(mi, 1);
353 e_menu_item_callback_set(mi, _temperature_face_cb_menu_enabled, face);
354 */
355 345
356 /* Config */ 346 /* Config */
357 mi = e_menu_item_new(mn); 347 mi = e_menu_item_new(mn);
@@ -594,24 +584,6 @@ _temperature_face_level_set(Temperature_Face *ef, double level)
594} 584}
595 585
596static void 586static void
597_temperature_face_cb_menu_enabled(void *data, E_Menu *m, E_Menu_Item *mi)
598{
599 Temperature_Face *face;
600 unsigned char enabled;
601
602 face = data;
603 enabled = e_menu_item_toggle_get(mi);
604 if ((face->conf->enabled) && (!enabled))
605 {
606 _temperature_face_disable(face);
607 }
608 else if ((!face->conf->enabled) && (enabled))
609 {
610 _temperature_face_enable(face);
611 }
612}
613
614static void
615_temperature_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi) 587_temperature_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi)
616{ 588{
617 Temperature_Face *face; 589 Temperature_Face *face;