summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-08 17:32:54 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-07-08 17:32:54 +0100
commitea5967e2a6a1143c4d9ccc0835362de24c23d197 (patch)
tree276443fc4138875594f030e16bf8987f3fc970bc /src
parentdcf5bc0e7e608e2af404cdb9114e1e05332477a1 (diff)
remove warnings of unused functions and vars
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_desklock.c62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c
index 6da5762bf..73fb590a2 100644
--- a/src/bin/e_desklock.c
+++ b/src/bin/e_desklock.c
@@ -13,8 +13,6 @@ struct _E_Desklock_Run
13 13
14static Ecore_Exe *_e_custom_desklock_exe = NULL; 14static Ecore_Exe *_e_custom_desklock_exe = NULL;
15static Ecore_Event_Handler *_e_custom_desklock_exe_handler = NULL; 15static Ecore_Event_Handler *_e_custom_desklock_exe_handler = NULL;
16static E_Dialog *_e_desklock_ask_presentation_dia = NULL;
17static int _e_desklock_ask_presentation_count = 0;
18 16
19static Ecore_Event_Handler *_e_desklock_run_handler = NULL; 17static Ecore_Event_Handler *_e_desklock_run_handler = NULL;
20static Ecore_Event_Handler *_e_desklock_randr_handler = NULL; 18static Ecore_Event_Handler *_e_desklock_randr_handler = NULL;
@@ -512,66 +510,6 @@ _e_desklock_cb_custom_desklock_exit(void *data EINA_UNUSED, int type EINA_UNUSED
512 return ECORE_CALLBACK_DONE; 510 return ECORE_CALLBACK_DONE;
513} 511}
514 512
515static void
516_e_desklock_ask_presentation_del(void *data)
517{
518 if (_e_desklock_ask_presentation_dia == data)
519 _e_desklock_ask_presentation_dia = NULL;
520}
521
522static void
523_e_desklock_ask_presentation_yes(void *data EINA_UNUSED, E_Dialog *dia)
524{
525 e_config->mode.presentation = 1;
526 e_config_mode_changed();
527 e_config_save_queue();
528 e_object_del(E_OBJECT(dia));
529 _e_desklock_ask_presentation_count = 0;
530}
531
532static void
533_e_desklock_ask_presentation_no(void *data EINA_UNUSED, E_Dialog *dia)
534{
535 e_object_del(E_OBJECT(dia));
536 _e_desklock_ask_presentation_count = 0;
537}
538
539static void
540_e_desklock_ask_presentation_no_increase(void *data EINA_UNUSED, E_Dialog *dia)
541{
542 int timeout, blanking, expose;
543
544 _e_desklock_ask_presentation_count++;
545 timeout = e_config->screensaver_timeout * _e_desklock_ask_presentation_count;
546 blanking = e_config->screensaver_blanking;
547 expose = e_config->screensaver_expose;
548
549 e_screensaver_attrs_set(timeout, blanking, expose);
550 e_screensaver_update();
551 e_object_del(E_OBJECT(dia));
552}
553
554static void
555_e_desklock_ask_presentation_no_forever(void *data EINA_UNUSED, E_Dialog *dia)
556{
557 e_config->desklock_ask_presentation = 0;
558 e_config_save_queue();
559 e_object_del(E_OBJECT(dia));
560 _e_desklock_ask_presentation_count = 0;
561}
562
563static void
564_e_desklock_ask_presentation_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event)
565{
566 Evas_Event_Key_Down *ev = event;
567 E_Dialog *dia = data;
568
569 if (strcmp(ev->key, "Return") == 0)
570 _e_desklock_ask_presentation_yes(NULL, dia);
571 else if (strcmp(ev->key, "Escape") == 0)
572 _e_desklock_ask_presentation_no(NULL, dia);
573}
574
575static Eina_Bool 513static Eina_Bool
576_e_desklock_run(E_Desklock_Run *task) 514_e_desklock_run(E_Desklock_Run *task)
577{ 515{