event.c 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. Editor's events definitions.
  3. Copyright (C) 2012-2014
  4. Free Software Foundation, Inc.
  5. Written by:
  6. Slava Zanko <slavazanko@gmail.com>, 2014
  7. This file is part of the Midnight Commander.
  8. The Midnight Commander is free software: you can redistribute it
  9. and/or modify it under the terms of the GNU General Public License as
  10. published by the Free Software Foundation, either version 3 of the License,
  11. or (at your option) any later version.
  12. The Midnight Commander is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16. You should have received a copy of the GNU General Public License
  17. along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #include <config.h>
  20. #include "lib/global.h"
  21. #include "lib/event.h"
  22. #include "event.h"
  23. /*** global variables ****************************************************************************/
  24. /*** file scope macro definitions ****************************************************************/
  25. /*** file scope type declarations ****************************************************************/
  26. /*** file scope variables ************************************************************************/
  27. /*** file scope functions ************************************************************************/
  28. /* --------------------------------------------------------------------------------------------- */
  29. /* --------------------------------------------------------------------------------------------- */
  30. /*** public functions ****************************************************************************/
  31. /* --------------------------------------------------------------------------------------------- */
  32. void
  33. mc_widget_init_events (GError ** error)
  34. {
  35. /* *INDENT-OFF* */
  36. event_init_group_t dialog_group_events[] =
  37. {
  38. {"show_dialog_list", mc_widget_dialog_show_dialog_list, NULL},
  39. {NULL, NULL, NULL}
  40. };
  41. /* *INDENT-ON* */
  42. /* *INDENT-OFF* */
  43. event_init_group_t input_group_events[] =
  44. {
  45. {"show_history", mc_widget_input_show_history, NULL},
  46. {NULL, NULL, NULL}
  47. };
  48. /* *INDENT-ON* */
  49. /* *INDENT-OFF* */
  50. event_init_t standard_events[] =
  51. {
  52. {MCEVENT_GROUP_WIDGET_DIALOG, dialog_group_events},
  53. {MCEVENT_GROUP_WIDGET_INPUT, input_group_events},
  54. {NULL, NULL}
  55. };
  56. /* *INDENT-ON* */
  57. mc_event_mass_add (standard_events, error);
  58. }
  59. /* --------------------------------------------------------------------------------------------- */