static void
_actions_unregister(E_Music_Control_Module_Context *ctxt)
{
   if (!ctxt->actions_set) return;
   e_action_predef_name_del(ACTION_NEXT_NAME, ACTION_NEXT);
   e_action_del(ACTION_NEXT);
   e_action_predef_name_del(ACTION_PLAY_PAUSE_NAME, ACTION_PLAY_PAUSE);
   e_action_del(ACTION_PLAY_PAUSE);
   e_action_predef_name_del(ACTION_PREVIOUS_NAME, ACTION_PREVIOUS);
   e_action_del(ACTION_PREVIOUS);

   ctxt->actions_set = EINA_FALSE;
}
Esempio n. 2
0
EAPI int
e_modapi_shutdown(E_Module *m)
{
   if (e_mod_gauche_shutdown() < 0)
     {
	printf("***e_mod_gauche_shutdown failure.");
     }

   if (act)
     {
	e_action_predef_name_del("EGauche", "Evaluate A Single Scheme Form");
	e_action_del("egauche");
     }

   return 1;
}
Esempio n. 3
0
EAPI int
e_modapi_shutdown(E_Module *m)
{
   /* remove module-supplied menu additions */
   if (maug)
     {
	e_int_menus_menu_augmentation_del("main/1", maug);
	maug = NULL;
     }
   /* remove module-supplied action */
   if (act)
     {
	e_action_predef_name_del(_("Launch"), _("Run Command Dialog"));
	e_action_del("exebuf");
	act = NULL;
     }
   e_exebuf_shutdown();
   conf_module = NULL;
   return 1;
}